Skip to content

Commit

Permalink
add gitlab ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed May 20, 2021
1 parent 391685c commit cf7f3bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

build:
image: docker:18-git
stage: build
only:
- main
- stable
services:
- docker:18-dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME-$CI_BUILD_ID .
- docker tag ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME-$CI_BUILD_ID ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME
- docker push ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME-$CI_BUILD_ID
- docker push ${ZOOMA_IMAGE_PREFIX}/zooma:$CI_COMMIT_REF_NAME

0 comments on commit cf7f3bf

Please sign in to comment.