Skip to content

Commit

Permalink
chore: split release pipelines and use docker tag ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dincho committed May 13, 2024
1 parent 3a6b59c commit 4dad7f4
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 56 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release-aepp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: release

on:
push:
tags: [ "aepp-graffiti-v*" ]

jobs:
publish-aepp:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.2.0
secrets: inherit
with:
FILE: ./aepp/Dockerfile
CONTEXT: ./aepp
BUILD_ARGS: COMMAND=prd
DOCKERHUB_REPO: "aeternity/aepp-graffiti"
deploy-aepp:
needs: [publish-aepp]
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.2.0
secrets: inherit
with:
DEPLOY_ENV: prd
DEPLOY_APP: aepp-graffiti
DEPLOY_TAG: ${{ github.ref_name }}
DEPLOY_SUBDOMAIN: graffiti
1 change: 0 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ jobs:
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
command: manifest
include-component-in-tag: false
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}]'
30 changes: 30 additions & 0 deletions .github/workflows/release-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags: [ "graffiti-server-v*" ]

jobs:
publish-server:
uses: aeternity/github-actions/.github/workflows/_publish-docker.yml@v2.2.0
secrets: inherit
with:
FILE: ./server/Dockerfile
CONTEXT: ./server
DOCKERHUB_REPO: "aeternity/graffiti-server"
deploy-server-testnet:
needs: [publish-server]
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.2.0
secrets: inherit
with:
DEPLOY_ENV: prd
DEPLOY_APP: graffiti-server-testnet
DEPLOY_TAG: ${{ github.ref_name }}
deploy-server-mainnet:
needs: [publish-server, deploy-server-testnet]
uses: aeternity/github-actions/.github/workflows/_deploy-gitops.yml@v2.2.0
secrets: inherit
with:
DEPLOY_ENV: prd
DEPLOY_APP: graffiti-server-mainnet
DEPLOY_TAG: ${{ github.ref_name }}
54 changes: 0 additions & 54 deletions .github/workflows/release.yml

This file was deleted.

1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"release-type": "node",
"packages": {
".": {},
"aepp": {},
"server": {}
}
Expand Down

0 comments on commit 4dad7f4

Please sign in to comment.