Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/staging-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Staging Dex UI Pipeline
on:
pull_request:
branches: [main]
types: [opened, synchronize, closed]
types: [opened, synchronize, reopened, closed]

env:
PR_NUMBER: ${{ github.event.pull_request.number }}
Expand Down Expand Up @@ -94,11 +94,13 @@ jobs:
persist-credentials: false
fetch-depth: 0

- name: Check the initial PR deployment status before make a PR Sync.
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
uses: aeternity/ae-github-actions/deploy-status@v7
- name: Chekc the initial PR deployment status before make a PR Sync.
continue-on-error: true
if: github.event_name == 'pull_request' || github.event.action != 'synchronize' || github.event.action == 'opened' || github.event.action == 'reopened'
uses: aeternity/ae-github-actions/deploy-status@v7.4.0
with:
url: https://pr-${{ env.PR_NUMBER }}-${{ env.APP }}.${{ env.ENV }}.service.aepps.com
timeout: 10

- name: Staging PR Sync
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
Expand All @@ -110,15 +112,15 @@ jobs:
app: ${{ env.APP }}

- name: Staging deploy
if: github.event_name == 'pull_request' && github.event.action == 'opened'
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'reopened'
uses: aeternity/ae-github-actions/argocd-deploy@v5
with:
url-prefix: pr-${{ env.PR_NUMBER }}
env: ${{ env.ENV }}
app: ${{ env.APP }}

- name: Staging undeploy
if: github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true
if: ((github.event_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true) || (github.event_name == 'delete' && github.event.ref_type == 'branch'))
uses: aeternity/ae-github-actions/argocd-undeploy@v5
with:
url-prefix: pr-${{ env.PR_NUMBER }}
Expand Down
Loading