From 9341b05f8908e34d84a8aaef43edef27114d8ae0 Mon Sep 17 00:00:00 2001 From: Supichai Pothong Date: Tue, 10 Oct 2023 04:18:39 +0700 Subject: [PATCH] [update] docker --- DockerFile | 4 ++-- bitbucket-pipelines.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DockerFile b/DockerFile index de36bb4..d5f20eb 100644 --- a/DockerFile +++ b/DockerFile @@ -7,8 +7,8 @@ RUN npm install -g @angular/cli ENV PATH="./node_modules/.bin:$PATH" COPY . ./ -RUN ng build --configuration production --base-href /cm-finance-web/ --deploy-url /cm-finance-web/ +RUN ng build --configuration production --base-href /cathaypay-web/ --deploy-url /cathaypay-web/ FROM nginx COPY nginx.conf /etc/nginx/conf.d/default.conf -COPY --from=compile-image /opt/ng/dist/cm-finance-web /usr/share/nginx/html +COPY --from=compile-image /opt/ng/dist/cathaypay-web /usr/share/nginx/html diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index a643d50..eca3d56 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -9,14 +9,14 @@ pipelines: - docker script: # Modify the commands below to build your repository. - docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD - - docker build -f DockerFile -t 71dev/cm-finance-web:dev . - - docker push 71dev/cm-finance-web:dev + - docker build -f DockerFile -t 71dev/cathaypay-web:dev . + - docker push 71dev/cathaypay-web:dev - step: name: Deploy to kubernates image: atlassian/pipelines-kubectl script: - echo $KUBE_CONFIG_DELL | base64 -d > kubeconfig - - kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig rollout restart deployment/cm-finance-web-deployment -n cm-finance-web + - kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig rollout restart deployment/cathaypay-web-deployment -n cathaypay-web definitions: services: docker: