Skip to content

Commit

Permalink
Build docker for dag-master and deploy to halley with 3 replica (#4102)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanlee42 authored May 21, 2024
1 parent f8b8180 commit 8228060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Docker and deploy
on:
push:
branches:
- master
- dag-master
workflow_dispatch:
release:
types: [ published ]
Expand Down Expand Up @@ -50,12 +50,12 @@ jobs:
labels: ${{ steps.docker_meta.outputs.labels }}
- name: deploy cluster
# Only deploy on master.
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/dag-master'
shell: bash
env:
IMAGE_VERSION: ${{steps.docker_meta.outputs.version}}
run: |
# use sha tag for force update
SHA=$(git rev-parse --short=7 HEAD);
echo "sha: ${SHA}";
# kubectl patch --namespace starcoin-halley statefulset starcoin --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"starcoin/starcoin:sha-'${SHA}'"}]'
kubectl patch --namespace starcoin-halley statefulset starcoin --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"starcoin/starcoin:sha-'${SHA}'"}]'
4 changes: 2 additions & 2 deletions kube/manifest/starcoin-halley.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
matchLabels:
app: starcoin
serviceName: starcoin-svc
replicas: 1
replicas: 3
template:
metadata:
name: starcoin
Expand All @@ -23,7 +23,7 @@ spec:
starcoin/node-pool: seed-pool
containers:
- name: starcoin
image: starcoin/starcoin:halley24_force_upgrade_v11
image: starcoin/starcoin:dag-master
imagePullPolicy: Always
command:
- bash
Expand Down

0 comments on commit 8228060

Please sign in to comment.