File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,20 @@ jobs:
12
12
steps :
13
13
- name : Checkout
14
14
uses : actions/checkout@v4
15
- - name : Deploy
15
+ - name : Remove old container
16
+ run : |
17
+ echo ${{ secrets.FROG_KEY }} | base64 -d > frog &&
18
+ chmod 600 frog &&
19
+ ssh -o StrictHostKeyChecking=no -i frog ${{ secrets.FROG_ADDRESS }} -p${{ secrets.FROG_PORT }} "docker rm -f flush-log-api" || true
20
+
21
+ - name : Remove old image
22
+ run : |
23
+ echo ${{ secrets.FROG_KEY }} | base64 -d > frog &&
24
+ chmod 600 frog &&
25
+ ssh -o StrictHostKeyChecking=no -i frog ${{ secrets.FROG_ADDRESS }} -p${{ secrets.FROG_PORT }} "docker image rm ghcr.io/pgulb/flush-log:api" || true
26
+
27
+ - name : Deploy fresh container
16
28
run : |
17
29
echo ${{ secrets.FROG_KEY }} | base64 -d > frog &&
18
30
chmod 600 frog &&
19
- ssh -o StrictHostKeyChecking=no -i frog ${{ secrets.FROG_ADDRESS }} -p${{ secrets.FROG_PORT }} "docker rm -f flush-log-api" &&
20
- ssh -o StrictHostKeyChecking=no -i frog ${{ secrets.FROG_ADDRESS }} -p${{ secrets.FROG_PORT }} "docker image rm ghcr.io/pgulb/flush-log:api" &&
21
31
ssh -o StrictHostKeyChecking=no -i frog ${{ secrets.FROG_ADDRESS }} -p${{ secrets.FROG_PORT }} "docker run -d -p 30149:6789 --name flush-log-api --restart=unless-stopped ghcr.io/pgulb/flush-log:api"
You can’t perform that action at this time.
0 commit comments