Skip to content
Snippets Groups Projects
Commit 200f9436 authored by Griefed's avatar Griefed :joystick:
Browse files

Update .gitlab-ci.yml file

parent 1d479d69
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,8 @@ test docker: ...@@ -14,8 +14,8 @@ test docker:
# Default branch leaves tag empty (= latest tag) # Default branch leaves tag empty (= latest tag)
# All other branches are tagged with the escaped branch name (commit ref slug) # All other branches are tagged with the escaped branch name (commit ref slug)
script: script:
- docker build --pull -t "$CI_REGISTRY_IMAGE$:develop" -t "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop" . - docker build -t $CI_REGISTRY_IMAGE$:develop -t index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop .
- docker push "$CI_REGISTRY_IMAGE:develop" "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop" - docker push $CI_REGISTRY_IMAGE:develop index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop
# Run this job in a branch where a Dockerfile exists # Run this job in a branch where a Dockerfile exists
rules: rules:
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
...@@ -55,8 +55,8 @@ build docker: ...@@ -55,8 +55,8 @@ build docker:
# Default branch leaves tag empty (= latest tag) # Default branch leaves tag empty (= latest tag)
# All other branches are tagged with the escaped branch name (commit ref slug) # All other branches are tagged with the escaped branch name (commit ref slug)
script: script:
- docker build --pull -t "$CI_REGISTRY_IMAGE$:latest" -t "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest" . - docker build -t $CI_REGISTRY_IMAGE$:latest -t index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest .
- docker push "$CI_REGISTRY_IMAGE:latest" "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest" - docker push $CI_REGISTRY_IMAGE:latest index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest
# Run this job in a branch where a Dockerfile exists # Run this job in a branch where a Dockerfile exists
rules: rules:
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment