Commit 929d5605 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

Add CI

parent a7420cfc
Pipeline #4046 passed with stage
in 1 minute and 12 seconds
stages:
- build
- test
- push
- deploy
before_script:
- docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
# testing is implicitly done at image build time
- docker build -t ${CI_PROJECT_NAME} .
push_dev:
stage: push
only:
- master
script:
- docker tag ${CI_PROJECT_NAME} ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA:0:7}
- docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA:0:7}
- docker tag ${CI_PROJECT_NAME} ${CI_REGISTRY_IMAGE}:latest
- docker push ${CI_REGISTRY_IMAGE}:latest
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment