-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from internxt/ci-IN-31-github-actions
[IN-31] fix: set ready-for-preview instead of preview tag
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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] | ||
|