Skip to content

Commit

Permalink
Use shared GHA workflows (#30)
Browse files Browse the repository at this point in the history
* Add PR cleanup pipeline
  • Loading branch information
dincho authored Nov 9, 2023
1 parent b9c38a1 commit 2820f95
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 147 deletions.
82 changes: 0 additions & 82 deletions .github/workflows/_deploy.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/_publish.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/_validate.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/mainline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:

jobs:
validate:
uses: ./.github/workflows/_validate.yml
uses: aeternity/github-actions/.github/workflows/_validate-npm.yml@v1.0.0
publish:
uses: ./.github/workflows/_publish.yml
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v1.0.0
needs: [ validate ]
secrets: inherit
deploy:
uses: ./.github/workflows/_deploy.yml
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v1.0.0
needs: [publish]
secrets: inherit
strategy:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/pull-request-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Cleanup"

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

jobs:
delete-tag:
uses: aeternity/github-actions/.github/workflows/_delete-tag-docker.yml@v1.0.0
secrets: inherit
with:
DOCKERHUB_REPO: aeternitybot/aemon
DOCKERHUB_TAG: "pr-${{ github.event.number }}"
6 changes: 4 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:

jobs:
validate:
uses: ./.github/workflows/_validate.yml
uses: aeternity/github-actions/.github/workflows/_validate-npm.yml@v1.0.0
publish:
uses: ./.github/workflows/_publish.yml
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v1.0.0
needs: [ validate ]
secrets: inherit
with:
DOCKERHUB_REPO: aeternitybot/aemon
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:

jobs:
validate:
uses: ./.github/workflows/_validate.yml
uses: aeternity/github-actions/.github/workflows/_validate-npm.yml@v1.0.0
publish:
uses: ./.github/workflows/_publish.yml
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v1.0.0
needs: [ validate ]
secrets: inherit
deploy:
uses: ./.github/workflows/_deploy.yml
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v1.0.0
needs: [publish]
secrets: inherit
strategy:
Expand Down

0 comments on commit 2820f95

Please sign in to comment.