File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 33
33
else
34
34
echo "Image with version (0.0.$VERSION) does not exist in the registry yet"
35
35
echo "Publishing a release and a dev image.."
36
+ echo "IS_RELEASE=true" >> $GITHUB_ENV
36
37
TAGS="${TAGS},\
37
38
ghcr.io/${{ github.repository }}:0.0.${{ env.VERSION }},\
38
39
ghcr.io/${{ github.repository }}:latest"
58
59
tags : ${{ env.TAGS }}
59
60
platforms : linux/amd64,linux/arm64,linux/arm/v7
60
61
61
- - name : Update on server
62
+ - name : Update release container on server
63
+ if : env.IS_RELEASE == 'true'
62
64
uses : appleboy/ssh-action@master
63
65
with :
64
66
host : ${{ secrets.DEPLOY_HOST }}
67
69
# this relies on a specific custom update script that is installed on the
68
70
# server that currently hosts sheltupdate. Adjust as needed.
69
71
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
You can’t perform that action at this time.
0 commit comments