From d0bf67c311adfe8b5d0af49468cf3f3a6db4a95d Mon Sep 17 00:00:00 2001 From: arikkfir Date: Tue, 5 Sep 2023 19:54:50 +0300 Subject: [PATCH] debug: comment of "/deploy" on PRs [skip ci] --- .github/workflows/pr_deploy.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr_deploy.yml b/.github/workflows/pr_deploy.yml index b59b78d6..4d07bdcd 100644 --- a/.github/workflows/pr_deploy.yml +++ b/.github/workflows/pr_deploy.yml @@ -44,15 +44,15 @@ jobs: echo "ref=$(gh pr view ${{ github.event.issue.number }} --json headRefName | jq -r .headRefName)" >> "$GITHUB_OUTPUT" echo "sha=$(gh pr view ${{ github.event.issue.number }} --json headRefOid | jq -r .headRefOid)" >> "$GITHUB_OUTPUT" - deploy: - name: Deploy - uses: arikkfir/delivery/.github/workflows/deploy-to-environment.yml@main - if: github.event_name == 'pull_request' || (github.event.issue.pull_request && github.event.comment.body == '/deploy') - with: - branch: ${{ github.event.pull_request.head.ref || github.event.issue.pull_request.head.ref }} - images: |- - ghcr.io/${{ github.repository }}/backend: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} - ghcr.io/${{ github.repository }}/frontend: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} - ghcr.io/${{ github.repository }}/migrations: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} - ghcr.io/${{ github.repository }}/neo4j: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} - secrets: inherit +# deploy: +# name: Deploy +# uses: arikkfir/delivery/.github/workflows/deploy-to-environment.yml@main +# if: github.event_name == 'pull_request' || (github.event.issue.pull_request && github.event.comment.body == '/deploy') +# with: +# branch: ${{ github.event.pull_request.head.ref || github.event.issue.pull_request.head.ref }} +# images: |- +# ghcr.io/${{ github.repository }}/backend: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} +# ghcr.io/${{ github.repository }}/frontend: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} +# ghcr.io/${{ github.repository }}/migrations: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} +# ghcr.io/${{ github.repository }}/neo4j: ${{ github.event.pull_request.head.sha || github.event.issue.pull_request.head.sha }} +# secrets: inherit