Skip to content

Instantly share code, notes, and snippets.

@uudashr
Created May 16, 2018 07:47
Show Gist options
  • Save uudashr/6d0cf89b3c282075dbc9c336b8285032 to your computer and use it in GitHub Desktop.
Save uudashr/6d0cf89b3c282075dbc9c336b8285032 to your computer and use it in GitHub Desktop.
Tag an existing image on buddy works
- 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