Skip to content

Commit da623c4

Browse files
committed
[ci] add server update step for dev image
1 parent b5cb7c2 commit da623c4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/publish.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
else
3434
echo "Image with version (0.0.$VERSION) does not exist in the registry yet"
3535
echo "Publishing a release and a dev image.."
36+
echo "IS_RELEASE=true" >> $GITHUB_ENV
3637
TAGS="${TAGS},\
3738
ghcr.io/${{ github.repository }}:0.0.${{ env.VERSION }},\
3839
ghcr.io/${{ github.repository }}:latest"
@@ -58,7 +59,8 @@ jobs:
5859
tags: ${{ env.TAGS }}
5960
platforms: linux/amd64,linux/arm64,linux/arm/v7
6061

61-
- name: Update on server
62+
- name: Update release container on server
63+
if: env.IS_RELEASE == 'true'
6264
uses: appleboy/ssh-action@master
6365
with:
6466
host: ${{ secrets.DEPLOY_HOST }}
@@ -67,3 +69,11 @@ jobs:
6769
# this relies on a specific custom update script that is installed on the
6870
# server that currently hosts sheltupdate. Adjust as needed.
6971
script: ~/update.sh sheltupdate
72+
73+
- name: Update staging container on server
74+
uses: appleboy/ssh-action@master
75+
with:
76+
host: ${{ secrets.DEPLOY_HOST }}
77+
username: ${{ secrets.DEPLOY_USER }}
78+
key: ${{ secrets.DEPLOY_PRIVKEY }}
79+
script: ~/update.sh sheltupdate-staging

0 commit comments

Comments
 (0)