Created
October 19, 2019 14:32
-
-
Save AndrewBestbier/6afc259cac4db843668a5777aba80202 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: 0.2 | |
| phases: | |
| install: | |
| runtime-versions: | |
| nodejs: 10 # (1) | |
| commands: | |
| - echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin # (2) | |
| pre_build: | |
| commands: | |
| - npm install # (3) | |
| - npm test # (4) | |
| build: | |
| commands: | |
| - docker build -t andrewbestbier/ci-comparison-blog . # (5) | |
| post_build: | |
| commands: | |
| - docker push andrewbestbier/ci-comparison-blog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment