From 89326e2c99185dc5580145c73d386e6be17e82d2 Mon Sep 17 00:00:00 2001 From: Bob Ong Date: Thu, 11 Jul 2024 15:44:05 +0800 Subject: [PATCH] [digitalocean deploy] Modified the triggering timing of docker images building --- .github/workflows/docker_build.yaml | 7 ++----- kube/starcoin-explorer-deployment.yaml | 13 ++++++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker_build.yaml b/.github/workflows/docker_build.yaml index b7525db..1c36090 100644 --- a/.github/workflows/docker_build.yaml +++ b/.github/workflows/docker_build.yaml @@ -2,11 +2,8 @@ name: Build and Deploy Docker Image on: push: - branches: - - main - workflow_dispatch: - release: - types: [published] + tags: + - 'v*' jobs: build-and-deploy: diff --git a/kube/starcoin-explorer-deployment.yaml b/kube/starcoin-explorer-deployment.yaml index ef1ab0d..016dba6 100644 --- a/kube/starcoin-explorer-deployment.yaml +++ b/kube/starcoin-explorer-deployment.yaml @@ -7,25 +7,28 @@ spec: replicas: 1 selector: matchLabels: - app: starcoin-client + app: starcoin-explorer template: metadata: labels: - app: starcoin-client + app: starcoin-explorer spec: containers: - name: react-app - image: starcoin_explorer:v1.9.10 + image: starcoin/starcoin_explorer:latest ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: - name: starcoin-explorer + name: starcoin-explorer-service + namespace: starcoin-client spec: type: LoadBalancer ports: - port: 80 + targetPort: 80 + nodePort: 32000 selector: - app: react-app \ No newline at end of file + app: starcoin-explorer \ No newline at end of file