Skip to content

Commit

Permalink
Merge pull request #281 from internxt/ci-IN-31-github-actions
Browse files Browse the repository at this point in the history
[IN-31] fix: set ready-for-preview instead of preview tag
  • Loading branch information
sg-gs authored Mar 4, 2024
2 parents 0cd8e34 + 55807a1 commit 6ea4614
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
file: ./infrastructure/preview.Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-dev:preview-${{ github.event.number }}-${{ github.event.pull_request.head.sha }}
add_preview_label:
add_ready_for_preview_label:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
preview
ready-for-preview
dispatch_update_deployment:
needs: add_preview_label
needs: add_ready_for_preview_label
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'deployed') }}
steps:
Expand Down Expand Up @@ -75,8 +75,9 @@ jobs:
}
}
dispatch_check_deployment:
needs: add_preview_label
needs: add_ready_for_preview_label
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'preview') }}
steps:
- name: Dispatch Check Preview Repository Command
uses: myrotvorets/[email protected]
Expand Down

0 comments on commit 6ea4614

Please sign in to comment.