Created
May 16, 2018 07:47
-
-
Save uudashr/6d0cf89b3c282075dbc9c336b8285032 to your computer and use it in GitHub Desktop.
Tag an existing image on buddy works
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
- pipeline: "Staging " | |
trigger_mode: "ON_EVERY_PUSH" | |
ref_name: "master" | |
ref_type: "BRANCH" | |
actions: | |
- action: "Build Docker image" | |
type: "DOCKERFILE" | |
login: "$DOCKER_LOGIN" | |
password: "$DOCKER_PASS" | |
docker_image_tag: "$BUDDY_EXECUTION_REVISION,stage" | |
dockerfile_path: "Dockerfile" | |
repository: "sztwiorok/kurio" | |
trigger_condition: "ALWAYS" | |
- pipeline: "Release" | |
trigger_mode: "ON_EVERY_PUSH" | |
ref_name: "refs/tags/*" | |
ref_type: "WILDCARD" | |
actions: | |
- action: "Create Dockerfile" | |
type: "BUILD" | |
working_directory: "/buddy/nuruddinashr" | |
docker_image_name: "library/ubuntu" | |
docker_image_tag: "16.04" | |
execute_commands: | |
- "echo \"FROM sztwiorok/kurio:\"$BUDDY_EXECUTION_REVISION > Dockerfile_release" | |
mount_filesystem_path: "/buddy/nuruddinashr" | |
shell: "BASH" | |
trigger_condition: "ALWAYS" | |
- action: "Build Docker image" | |
type: "DOCKERFILE" | |
login: "$DOCKER_LOGIN" | |
password: "$DOCKER_PASS" | |
docker_image_tag: "$BUDDY_EXECUTION_TAG" | |
dockerfile_path: "Dockerfile_release" | |
repository: "sztwiorok/kurio" | |
trigger_condition: "ALWAYS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment