Skip to content

Commit a69f50f

Browse files
authored
Switch to shared GHA (#14)
1 parent c33d5d0 commit a69f50f

File tree

6 files changed

+83
-243
lines changed

6 files changed

+83
-243
lines changed

.github/workflows/integration.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: integration
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
publish:
9+
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
10+
secrets: inherit
11+
with:
12+
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
13+
deploy:
14+
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
15+
needs: [publish]
16+
secrets: inherit
17+
with:
18+
DEPLOY_ENV: dev
19+
DEPLOY_APP: ${{ github.event.repository.name }}
20+
DEPLOY_VERSION: ${{ github.ref_name }}
21+
DEPLOY_SUBDOMAIN: hyperchain

.github/workflows/prod-docker.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: pull-request-cleanup
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
types: [ closed ]
7+
8+
jobs:
9+
rollback:
10+
uses: aeternity/github-actions/.github/workflows/_rollback-gitops.yml@v2.0.0
11+
secrets: inherit
12+
with:
13+
DEPLOY_ENV: dev
14+
DEPLOY_APP: ${{ github.event.repository.name }}
15+
DEPLOY_VERSION: "pr-${{ github.event.number }}"
16+
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-hyperchain"
17+
delete-tag:
18+
uses: aeternity/github-actions/.github/workflows/_delete-tag-docker.yml@v2.0.0
19+
secrets: inherit
20+
with:
21+
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
22+
DOCKERHUB_TAG: "pr-${{ github.event.number }}"

.github/workflows/pull-request.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: pull-request
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
publish:
9+
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
10+
secrets: inherit
11+
with:
12+
DOCKERHUB_REPO: "aeternitybot/${{ github.event.repository.name }}"
13+
deploy:
14+
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
15+
needs: [publish]
16+
secrets: inherit
17+
with:
18+
DEPLOY_ENV: dev
19+
DEPLOY_APP: ${{ github.event.repository.name }}
20+
DEPLOY_VERSION: "pr-${{ github.event.number }}"
21+
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-hyperchain"

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags: [ v* ]
6+
7+
jobs:
8+
publish:
9+
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.0.0
10+
secrets: inherit
11+
deploy:
12+
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.0.0
13+
needs: [publish]
14+
secrets: inherit
15+
with:
16+
DEPLOY_ENV: stg #TODO change to prd
17+
DEPLOY_APP: ${{ github.event.repository.name }}
18+
DEPLOY_TAG: ${{ github.ref_name }}
19+
DEPLOY_SUBDOMAIN: hyperchain

.github/workflows/staging-docker.yml

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)