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