Skip to content
Snippets Groups Projects
Commit ac4eb64f authored by Yasin Ali Marouga's avatar Yasin Ali Marouga
Browse files

Merge branch 'chore/dockerdeployment' into 'dev'

chore: implement deployment to docker hub

See merge request !60
parents a9ed0a95 704369ee
No related branches found
No related tags found
2 merge requests!66Final merge,!60chore: implement deployment to docker hub
Pipeline #284898 passed with warnings
...@@ -6,6 +6,7 @@ stages: ...@@ -6,6 +6,7 @@ stages:
- build - build
- test - test
- security_scan - security_scan
- deploy
cache: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
...@@ -62,4 +63,21 @@ include: ...@@ -62,4 +63,21 @@ include:
sast: sast:
stage: security_scan stage: security_scan
script: script:
- echo "Running SAST..." - echo "Running SAST..."
\ No newline at end of file
deploy:
stage: deploy
image: docker:latest
tags:
- dind
services:
- name: docker:dind
variables:
DOCKER_DRIVER: overlay2
DOCKER_IMAGE_NAME: $CI_REGISTRY_USER/idatt2106_2024_02_frontend-app
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: tcp://docker:2375
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login --username $CI_REGISTRY_USER --password-stdin
- docker build -t $DOCKER_IMAGE_NAME:latest .
- docker push $DOCKER_IMAGE_NAME:latest
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