mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-01-01 17:20:14 -06:00
added ci pipeline
This commit is contained in:
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
stages:
|
||||
- publish
|
||||
|
||||
publish-docker-container:
|
||||
image: docker:latest
|
||||
stage: publish
|
||||
services:
|
||||
- docker:dind
|
||||
before_script:
|
||||
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASSWORD"
|
||||
script:
|
||||
- |
|
||||
docker build --pull -t "$REGISTRY_IMAGE:latest" .
|
||||
docker push "$REGISTRY_IMAGE:latest"
|
||||
# docker build --pull -t "$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME:$CI_COMMIT_TAG" .
|
||||
# docker push "$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME:$CI_COMMIT_TAG"
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG # Runs the job only when a tag is created
|
||||
Reference in New Issue
Block a user