Skip to content
Snippets Groups Projects
Commit 1980ee3f authored by Ivan Procaccini's avatar Ivan Procaccini :computer: Committed by Ivan Procaccini
Browse files

Fix: amend .gitlab-ci.yml file

parent ef37dab5
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ stages:
- lint
- test
- build
- deploy
- deploy
before_script:
- apt-get update
......@@ -68,7 +68,7 @@ unit_test:
build nginx image:
image: docker:latest
stage: building
stage: build
interruptible: true
except:
changes:
......@@ -87,14 +87,14 @@ build nginx image:
before_script: []
script:
- >
docker build
--tag $CI_REGISTRY_IMAGE-nginx:latest
--build-arg certificate="$CERTIFICATE"
--build-arg private_key="$PRIVATE_KEY"
--cache-from $CI_REGISTRY_IMAGE-nginx:latest
--file nginx/Dockerfile
.
- docker tag $CI_REGISTRY_IMAGE-nginx:latest $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-nginx
docker build
--tag $CI_REGISTRY_IMAGE-nginx:latest
--build-arg certificate="$CERTIFICATE"
--build-arg private_key="$PRIVATE_KEY"
--cache-from $CI_REGISTRY_IMAGE-nginx:latest
--file nginx/Dockerfile
.
- docker tag $CI_REGISTRY_IMAGE-nginx:latest $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-nginx
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-nginx
......
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