Skip to content

Instantly share code, notes, and snippets.

@AndrewBestbier
Created October 19, 2019 14:32
Show Gist options
  • Select an option

  • Save AndrewBestbier/6afc259cac4db843668a5777aba80202 to your computer and use it in GitHub Desktop.

Select an option

Save AndrewBestbier/6afc259cac4db843668a5777aba80202 to your computer and use it in GitHub Desktop.
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