Skip to content

Commit

Permalink
Update to AF shared GHA (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
dincho authored Nov 14, 2023
1 parent 201dbbf commit 3cbadf6
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 235 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: integration

on:
push:
branches: [ master ]

jobs:
publish:
uses: aeternity/github-actions/.github/workflows/[email protected]
needs: [ validate ]
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
deploy:
uses: aeternity/github-actions/.github/workflows/[email protected]
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: aepp-faucet
DEPLOY_VERSION: master
DEPLOY_HOST_PREFIX: ""
104 changes: 0 additions & 104 deletions .github/workflows/prod-pipeline.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/pull-request-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pull-request-cleanup

on:
pull_request:
branches: [ master ]
types: [ closed ]

jobs:
rollback:
uses: aeternity/github-actions/.github/workflows/[email protected]
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: aepp-faucet
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_HOST_PREFIX: "pr-${{ github.event.number }}-"
delete-tag:
uses: aeternity/github-actions/.github/workflows/[email protected]
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
DOCKERHUB_TAG: "pr-${{ github.event.number }}"
21 changes: 21 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: pull-request

on:
pull_request:
branches: [ master ]

jobs:
publish:
uses: aeternity/github-actions/.github/workflows/[email protected]
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
deploy:
uses: aeternity/github-actions/.github/workflows/[email protected]
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: aepp-faucet
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_HOST_PREFIX: "pr-${{ github.event.number }}-"
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: release

on:
push:
tags: [ v* ]

jobs:
publish:
uses: aeternity/github-actions/.github/workflows/[email protected]
secrets: inherit
deploy:
uses: aeternity/github-actions/.github/workflows/[email protected]
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: prd
DEPLOY_APP: aepp-faucet
DEPLOY_TAG: ${{ github.ref_name }}
131 changes: 0 additions & 131 deletions .github/workflows/staging-pipeline.yml

This file was deleted.

0 comments on commit 3cbadf6

Please sign in to comment.