Skip to content

Commit

Permalink
CD: add missing checkout stage
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Aug 3, 2023
1 parent 8c79e80 commit 0509c5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -56,15 +59,15 @@ jobs:
runs-on: ubuntu-latest
steps:
-
name: Executing remote ssh commands using ssh key and deploying
name: Update docker service over ssh
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.SIRETO_BASTION_HOST }}
username: githubci
key: ${{ secrets.SIRETO_BASTION_SSH_KEY }}
port: ${{ secrets.SIRETO_BASTION_PORT }}
script: |
if [ ${{ github.ref_type }} == 'master' ]; then
if [ ${{ github.ref_name }} == 'master' ]; then
docker --host=${{ secrets.PROD_DEPLOYMENT_HOST }} service update --image=registry.sireto.io/deltalender/delta-pdf-api:${{ github.ref_name }} delta_sign_api
elif [ ${{ github.ref_name }} == 'develop' ]; then
docker --host=${{ secrets.DEV_DEPLOYMENT_HOST }} service update --image=registry.sireto.io/deltalender/delta-pdf-api:${{ github.sha }} delta_sign_dev_api
Expand Down

0 comments on commit 0509c5e

Please sign in to comment.