Created
December 30, 2021 13:16
-
-
Save dejanu/36df3276f7e322b8c8254e383914474f to your computer and use it in GitHub Desktop.
CNAB bundle for Docker mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Informational Metadata: bundle name, version and description | |
name: whalesay | |
version: 0.1.2 | |
description: "An example bundle that uses docker through the magic of whalespeak" | |
registry: getporter | |
# Required extensions: Docker access is required to run the bundle | |
required: | |
- docker | |
parameters: | |
- name: msg | |
description: a message for the whales to speak | |
type: string | |
default: "whale hello there!" | |
applyTo: | |
- say | |
# Allows to use Docker CLI commands in the bundle like run, build etc. | |
mixins: | |
- docker | |
# Declaring the actions install, upgrade, say, uninstall | |
install: | |
- docker: | |
run: | |
image: "docker/whalesay:latest" | |
rm: true | |
arguments: | |
- cowsay | |
- Hello World | |
upgrade: | |
- docker: | |
run: | |
image: "docker/whalesay:latest" | |
rm: true | |
arguments: | |
- cowsay | |
- World 2.0 | |
say: | |
- docker: | |
run: | |
image: "docker/whalesay:latest" | |
rm: true | |
arguments: | |
- cowsay | |
- "{{ bundle.parameters.msg }}" | |
uninstall: | |
- docker: | |
run: | |
image: "docker/whalesay:latest" | |
rm: true | |
arguments: | |
- cowsay | |
- Goodbye World |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment