Skip to content

Commit 47289f4

Browse files
redeploy new host
1 parent ed80a2a commit 47289f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/workflow.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
- name: Update webpack deployment file process.env.BASE_URL
1818
run: sed -i 's|DEPLOY_BASE_URL|process.env.BASE_URL|' $GITHUB_WORKSPACE/webpack.config.js
1919
- name: Build container image
20-
run: docker build -t registry.digitalocean.com/npuzzle/main:fe-b-repo-$(echo $GITHUB_SHA | head -c7) .
20+
run: docker build -t registry.digitalocean.com/mw-server/main:npuzzle-brdrepo-$(echo $GITHUB_SHA | head -c7) .
2121
- name: Log in to DigitalOcean Container Registry with short-lived credentials
2222
run: doctl registry login --expiry-seconds 1200
2323
- name: Push image to DigitalOcean Container Registry
24-
run: docker push registry.digitalocean.com/npuzzle/main:fe-b-repo-$(echo $GITHUB_SHA | head -c7)
24+
run: docker push registry.digitalocean.com/mw-server/main:npuzzle-brdrepo-$(echo $GITHUB_SHA | head -c7)
2525
- name: Update deployment file
26-
run: TAG=$(echo $GITHUB_SHA | head -c7) && sed -i 's|<IMAGE>|registry.digitalocean.com/npuzzle/main:fe-b-repo-'${TAG}'|' $GITHUB_WORKSPACE/k8s/auto-deployment.yml
26+
run: TAG=$(echo $GITHUB_SHA | head -c7) && sed -i 's|<IMAGE>|registry.digitalocean.com/mw-server/main:npuzzle-brdrepo-'${TAG}'|' $GITHUB_WORKSPACE/k8s/auto-deployment.yml
2727
- name: Save DigitalOcean kubeconfig with short-lived credentials
2828
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 ${{ secrets.DO_CLUSTER_NAME }}
2929
- name: Deploy to DigitalOcean Kubernetes

0 commit comments

Comments
 (0)