From dc6e8f6c41145eee449b115641006d9bf856a150 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Tue, 3 May 2022 16:20:07 +0000 Subject: [PATCH] Fixed docker file & added publish step to CI/CD --- .gitlab/.gitlab-ci.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index a2cdb7b..390d0ac 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -86,7 +86,7 @@ production: image: node:16 cache: [ ] script: - - echo "Make curl request to portainer" + - curl -X POST https://portainer.zakscode.com/api/webhooks/9fcc5dce-a884-4063-8666-34c0acf0aec5 environment: name: Production url: https://zakscode.com diff --git a/Dockerfile b/Dockerfile index d38e739..b859bc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN if [ ! -d "dist" ]; then npm run build; fi # Use Nginx to serve FROM nginx:1.20-alpine -COPY --from=build /app/dist /usr/share/nginx/html +COPY --from=build /app/dist/zakscode /usr/share/nginx/html COPY docker/robots.txt /usr/share/nginx/html/robots.txt COPY docker/nginx.conf /etc/nginx/nginx.conf EXPOSE 80