We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd5a99 commit 2de2b9fCopy full SHA for 2de2b9f
.github/workflows/ci.yml .github/workflows/ci-cd.yml.github/workflows/ci.yml renamed to .github/workflows/ci-cd.yml
@@ -70,3 +70,19 @@ jobs:
70
docker build -f "${{ steps.df.outputs.path }}" -t $IMAGE:release -t $IMAGE:$GIT_SHA "${{ steps.df.outputs.ctx }}"
71
docker push $IMAGE:release
72
docker push $IMAGE:$GIT_SHA
73
+
74
+ deploy:
75
+ needs: build-and-push
76
+ if: github.ref == 'refs/heads/release' && needs.build-and-push.result == 'success'
77
+ runs-on: ubuntu-latest
78
+ steps:
79
+ - name: Deploy
80
+ uses: appleboy/ssh-action@v1.0.3
81
+ with:
82
+ host: ${{ secrets.CD_HOST }}
83
+ username: ${{ secrets.CD_USER }}
84
+ key: ${{ secrets.CD_SSH_KEY }}
85
+ port: ${{ secrets.CD_PORT }}
86
+ script: |
87
+ export DEPLOY_TAG=release
88
+ bash -lc '/srv/docsa/infra/deploy.sh'
infra/deploy.sh
100644
100755
0 commit comments