diff --git a/.github/workflows/deploy-do-droplet-demo.yml b/.github/workflows/deploy-do-droplet-demo.yml index c712e9c4d6a..6dfd6d24519 100644 --- a/.github/workflows/deploy-do-droplet-demo.yml +++ b/.github/workflows/deploy-do-droplet-demo.yml @@ -141,6 +141,7 @@ jobs: COMPANY_NAME: '${{ secrets.COMPANY_NAME }}' - name: Copy file via scp - with-cloudflare + if: ${{ env.INGRESS_CERT_TYPE == 'cloudflare' }} uses: appleboy/scp-action@master with: host: ${{secrets.DO_DROPLET_DEMO_HOST}} @@ -149,6 +150,7 @@ jobs: source: '.deploy/ssh/with-cloudflare/docker-compose.api.demo.yml' target: '.' - name: Copy file via scp - with-letsencrypt + if: ${{ env.INGRESS_CERT_TYPE == 'letsencrypt' }} uses: appleboy/scp-action@master with: host: ${{secrets.DO_DROPLET_DEMO_HOST}} diff --git a/.github/workflows/deploy-do-droplet-prod.yml b/.github/workflows/deploy-do-droplet-prod.yml index 628b7244607..1b2104c4d6a 100644 --- a/.github/workflows/deploy-do-droplet-prod.yml +++ b/.github/workflows/deploy-do-droplet-prod.yml @@ -141,6 +141,7 @@ jobs: COMPANY_NAME: '${{ secrets.COMPANY_NAME }}' - name: Copy file via scp - with-cloudflare + if: ${{ env.INGRESS_CERT_TYPE == 'cloudflare' }} uses: appleboy/scp-action@master with: host: ${{secrets.DO_DROPLET_PROD_HOST}} @@ -149,6 +150,7 @@ jobs: source: '.deploy/ssh/with-cloudflare/docker-compose.api.prod.yml' target: '.' - name: Copy file via scp - with-letsencrypt + if: ${{ env.INGRESS_CERT_TYPE == 'letsencrypt' }} uses: appleboy/scp-action@master with: host: ${{secrets.DO_DROPLET_PROD_HOST}} diff --git a/.github/workflows/deploy-do-droplet-stage.yml b/.github/workflows/deploy-do-droplet-stage.yml index 04f4ca39553..02ab91b95dc 100644 --- a/.github/workflows/deploy-do-droplet-stage.yml +++ b/.github/workflows/deploy-do-droplet-stage.yml @@ -141,6 +141,7 @@ jobs: COMPANY_NAME: '${{ secrets.COMPANY_NAME }}' - name: Copy file via scp - with-cloudflare + if: ${{ env.INGRESS_CERT_TYPE == 'cloudflare' }} uses: appleboy/scp-action@master with: host: ${{secrets.DO_DROPLET_STAGE_HOST}} @@ -149,6 +150,7 @@ jobs: source: '.deploy/ssh/with-cloudflare/docker-compose.api.stage.yml' target: '.' - name: Copy file via scp - with-letsencrypt + if: ${{ env.INGRESS_CERT_TYPE == 'letsencrypt' }} uses: appleboy/scp-action@master with: host: ${{secrets.DO_DROPLET_STAGE_HOST}}