Skip to content

Commit

Permalink
[digitalocean deploy] Modified the triggering timing of docker images…
Browse files Browse the repository at this point in the history
… building
  • Loading branch information
welbon committed Jul 11, 2024
1 parent d1379d2 commit 89326e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 8 additions & 5 deletions kube/starcoin-explorer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
app: starcoin-explorer

0 comments on commit 89326e2

Please sign in to comment.