Hi, I have a CI/CD configuration that has worked well about one week ago, I deployed my latest code then. After 1 week, it suddenly stopped working, the job still run successfully, but I don’t see my latest code, or any new docker image or container created. Please help.
Here is my gitlab-ci.yml:
image: docker:19.03.12
services:
- docker:19.03.12-dind
stages:
- deploy-staging
step-deploy-staging:
stage: deploy-staging
variables:
DOCKER_TLS_CERTDIR: ‘’
before_script:
- echo “BE_BASE_URL=$BE_BASE_URL” >> “./.env”
script:
- docker build -t atlas/frontend:stag .
- OldID=$(docker ps -f “expose=3000” -aq)
- ‘[[ ! -z $OldID ]] && docker stop $OldID’
- docker run -p 3000:3000 -d atlas/frontend:stag
- docker image prune -f
only:
- staging
Here is my Docker file:
FROM node:12-alpine
Install node compile native
RUN apk add g++ make python
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package*.json ./
COPY . .
RUN yarn
Install next-boost for deploy in production
RUN yarn add next-boost
RUN yarn build
ENV HOST=0.0.0.0
CMD [ “npm”, “run”, “start:production” ]
I have run the job multiple times, they all succeeded. And I have tried to register a new runner on the same server, but no luck.