Skip to content

Instantly share code, notes, and snippets.

@mardymark
Created April 30, 2018 21:24
Show Gist options
  • Select an option

  • Save mardymark/aa9632c6c03579d850f38c8d7cf5a340 to your computer and use it in GitHub Desktop.

Select an option

Save mardymark/aa9632c6c03579d850f38c8d7cf5a340 to your computer and use it in GitHub Desktop.
version: 2
jobs:
docker-image-publish:
steps:
- setup_remote_docker
- checkout
- run:
name: "Build"
command: "docker build -t my-repo/my-image-name:and-tag ."
- run:
name: "Push"
command: "docker push my-repo/my-image-name:and-tag"
workflows:
version: 2
docker-image:
jobs:
- docker-image-publish:
filters:
branches:
ignore: /.*/
tags:
only: /^publish->.*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment