Created
April 30, 2018 21:24
-
-
Save mardymark/aa9632c6c03579d850f38c8d7cf5a340 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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