Skip to content
Snippets Groups Projects
Commit b3cfef25 authored by Johann Ruiz's avatar Johann Ruiz
Browse files

Removing images from gitlab runner

parent ad4317c1
No related branches found
No related tags found
No related merge requests found
Pipeline #10645 failed
......@@ -22,6 +22,7 @@ deploy-job: # This job runs in the deploy stage.
script:
- echo "Deploying application..."
- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
- docker build -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
- docker rmi $CI_REGISTRY_IMAGE:latest
- echo "Application successfully deployed."
\ No newline at end of file
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