Update pipeline script

This commit is contained in:
Murtadha 2024-07-12 00:40:15 -04:00
parent 3c67f6d5b5
commit e603d507e1

View file

@ -53,11 +53,12 @@ pipeline:
from_secret: ssh_key from_secret: ssh_key
port: 2332 port: 2332
script: script:
- cd /home/********/docker-containers/********/frontend - cd /home/mnisyif/docker-containers/mnisyif/frontend
- docker build -t ********-frontend:${CI_COMMIT_SHA} . - DOCKER_TAG=$(echo ${CI_COMMIT_SHA} | cut -c1-8)
- docker stop ********-frontend || true - docker build -t frontend:$DOCKER_TAG .
- docker rm ********-frontend || true - docker stop frontend || true
- docker run -d --name ********-frontend -p 5173:5173 ********-frontend:${CI_COMMIT_SHA} - docker rm frontend || true
- docker run -d --name frontend -p 5173:5173 frontend:$DOCKER_TAG
when: when:
branch: master branch: master