Skip to content

Commit

Permalink
Merge pull request #270 from aeternity/ci/update-pipelines
Browse files Browse the repository at this point in the history
ci: update pipelines
  • Loading branch information
martinkaintas committed Jul 11, 2024
2 parents b21bc2d + df02701 commit 059fdd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/stg-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ jobs:
with:
images: aeternitybot/state-channel-demo-backend
tags: |
type=raw,value=latest,enable=${{ endsWith(GitHub.ref, 'main') }}
type=ref,event=tag
type=ref,event=pr
- name: Get commit sha on PR Sync
Expand Down Expand Up @@ -112,15 +110,15 @@ jobs:

- name: Staging deploy
if: github.event_name == 'pull_request' && github.event.action == 'opened'
uses: aeternity/ae-github-actions/argocd-deploy@v4
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_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true
uses: aeternity/ae-github-actions/argocd-undeploy@v4
uses: aeternity/ae-github-actions/argocd-undeploy@v5
with:
url-prefix: pr-${{ env.PR_NUMBER }}
env: ${{ env.ENV }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/stg-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ jobs:
with:
images: aeternitybot/state-channel-demo-frontend
tags: |
type=raw,value=latest,enable=${{ endsWith(GitHub.ref, 'main') }}
type=ref,event=tag
type=ref,event=pr
- name: Get commit sha on PR Sync
Expand Down Expand Up @@ -121,15 +119,15 @@ jobs:

- name: Staging deploy
if: github.event_name == 'pull_request' && github.event.action == 'opened'
uses: aeternity/ae-github-actions/argocd-deploy@v4
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_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true
uses: aeternity/ae-github-actions/argocd-undeploy@v4
uses: aeternity/ae-github-actions/argocd-undeploy@v5
with:
url-prefix: pr-${{ env.PR_NUMBER }}
env: ${{ env.ENV }}
Expand Down

0 comments on commit 059fdd0

Please sign in to comment.