Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Switch to shared GHA #59

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 0 additions & 75 deletions .circleci/config.yml

This file was deleted.

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/[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: ${{ github.event.repository.name }}
DEPLOY_VERSION: ${{ github.ref_name }}
DEPLOY_SUBDOMAIN: repl
128 changes: 0 additions & 128 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: ${{ github.event.repository.name }}
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-repl"
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: ${{ github.event.repository.name }}
DEPLOY_VERSION: "pr-${{ github.event.number }}"
DEPLOY_SUBDOMAIN: "pr-${{ github.event.number }}-repl"
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release-please

on:
push:
branches: [ master ]

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
release-type: elixir
package-name: "mix.exs"
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"ci","section":"CI / CD","hidden":false},{"type":"test","section":"Testing","hidden":false},{"type":"refactor","section":"Refactorings","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'
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/[email protected]
secrets: inherit
deploy:
uses: aeternity/github-actions/.github/workflows/[email protected]
needs: [publish]
secrets: inherit
with:
DEPLOY_ENV: prd
DEPLOY_APP: ${{ github.event.repository.name }}
DEPLOY_TAG: ${{ github.ref_name }}
DEPLOY_SUBDOMAIN: repl
Loading