Skip to content

Commit

Permalink
Switch to shared GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
dincho committed Nov 14, 2023
1 parent c33d5d0 commit 2ab05fb
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 243 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: integration

on:
push:
branches: [ master ]

jobs:
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: dev
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_VERSION: ${{ github.ref_name }}
DEPLOY_SUBDOMAIN: hyperchain
112 changes: 0 additions & 112 deletions .github/workflows/prod-docker.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/_rollback-gitops.yml@v2.0.0
secrets: inherit
with:
DEPLOY_ENV: dev
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-hyperchain"
delete-tag:
uses: aeternity/github-actions/.github/workflows/_delete-tag-docker.yml@v2.0.0
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/_publish-docker.yml@v2.0.0
secrets: inherit
with:
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: dev
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-hyperchain"
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release

on:
push:
tags: [ v* ]

jobs:
publish:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
secrets: inherit
deploy:
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: stg
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_TAG: ${{ github.ref_name }}
DEPLOY_SUBDOMAIN: hyperchain
131 changes: 0 additions & 131 deletions .github/workflows/staging-docker.yml

This file was deleted.

0 comments on commit 2ab05fb

Please sign in to comment.