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: ...@@ -44,9 +44,9 @@ code_quality_json:
docker-build-latest: docker-build-latest:
stage: build stage: build
image: docker:git image: docker:git
# only: only:
# refs: refs:
# - main - main
except: except:
variables: variables:
- $CI_COMMIT_TAG - $CI_COMMIT_TAG
...@@ -71,6 +71,10 @@ docker-build-tag: ...@@ -71,6 +71,10 @@ docker-build-tag:
script: script:
- docker build -t $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG . - docker build -t $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG .
- docker save -o build/image.tar $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: ...@@ -88,8 +92,8 @@ docker-build-tag:
docker-push-latest: docker-push-latest:
stage: publish stage: publish
image: docker image: docker
# only: only:
# - main - main
before_script: before_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN $DOCKER_REGISTRY - docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN $DOCKER_REGISTRY
script: 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