Skip to content
Snippets Groups Projects
Commit 7550cac2 authored by Michal Petrovič's avatar Michal Petrovič
Browse files

Update .gitlab-ci.yml file

parent 9d5f3ee1
Branches
2 merge requests!3Resolve "Z-DNA view error",!1Resolve "Move frontend to separate project"
Pipeline #165177 passed with warnings with stage
in 18 seconds
......@@ -44,9 +44,9 @@ code_quality_json:
docker-build-latest:
stage: build
image: docker:git
# only:
# refs:
# - main
only:
refs:
- main
except:
variables:
- $CI_COMMIT_TAG
......@@ -71,6 +71,10 @@ docker-build-tag:
script:
- docker build -t $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG .
- docker save -o build/image.tar $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG
artifacts:
paths:
- build/image.tar
expire_in: 10 mins # Optional: Set an expiration time for the artifact
# ===========================================================================
......@@ -88,8 +92,8 @@ docker-build-tag:
docker-push-latest:
stage: publish
image: docker
# only:
# - main
only:
- main
before_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN $DOCKER_REGISTRY
script:
......
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