Skip to content

Commit

Permalink
Change catalyst tag to centrifuge-app/v* (#1472)
Browse files Browse the repository at this point in the history
* Change catalyst tag to centrifuge-app/v*

Have consistency between the release tags and the catalyst tag

* change catalyst deployment tag, separate catalyst into it's own deployment

* Update tags on the README
  • Loading branch information
gpmayorga authored Jun 23, 2023
1 parent 5cc0e3e commit 2e9f9b0
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ To make sure repository admins can control the full workflow of our apps to prod

- Demo deployments must be [manually triggered](https://github.com/centrifuge/apps/actions/workflows/demo-deploys.yml). They are not required for the release process.

- Catalyst deployments are triggered by pushing a tag containing `rc` in the tag name.
- Catalyst deployments are triggered by pushing a tag containing `centrifuge-app-v*` in the tag name.

- Altair and staging are triggered by creating a `pre-release` [on the Github repository](https://github.com/centrifuge/apps/releases/new)

Expand All @@ -130,11 +130,11 @@ More info on our release process rationale can be found in [our HackMD](https://
## Releasing to staging, Altair, and Prod/Centrifuge

### 1. Create a release and mark it as a pre-Release
-> Deploys to pp.staging.centrifuge.io) and app.altair.centrifuge.io
-> Deploys to app.staging.centrifuge.io and app.altair.centrifuge.io

Navigate to create a new [pre-release](https://github.com/centrifuge/apps/releases/new). Make sure to tick the `pre-release` option.

1. Use an existing tag `rc` created to release Catalyst or create a new `centrifuge-app-vX.YY` tag on the release screen. Only tags starting with `rc*` or `centrifuge-app-v*` will meet the requirements for deployments
1. Create a new `centrifuge-app-vX.YY` tag on the release screen. Only tags starting with `centrifuge-app-v*` will meet the requirements for deployments:
- Major version: release includes new features/improvments
- Minor version: release only includes bug fixes
2. Name the release `CentrifugeApp vX.X`
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/prepare-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ runs:
echo "front_url=app.staging.centrifuge.io" >> $GITHUB_OUTPUT
echo "env_name=production" >> $GITHUB_OUTPUT
# env_name is production because it needs to use the prod variable files inside each app
elif ${{ contains(github.ref, 'refs/tags/rc') }}; then
elif ${{ inputs.deploy_to == 'catalyst' }}; then
# CATALYST
echo "function_name=${{ inputs.app_base_name }}-catalyst" >> $GITHUB_OUTPUT
echo "front_url=${{ inputs.app_base_name }}-catalyst.k-f.dev" >> $GITHUB_OUTPUT
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/catalyst-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Catalyst
on:
push:
tags:
- "centrifuge-app/v*"
concurrency:
# Cancel any staging or prod deployment on-going
# in favor of this new pre-release
group: catalyst-deployment
cancel-in-progress: true

jobs:
app-staging:
uses: ./.github/workflows/centrifuge-app.yml
secrets: inherit
with:
deploy_env: catalyst


pinning-staging:
uses: ./.github/workflows/pinning-api.yml
secrets: inherit
with:
deploy_env: catalyst


onboarding-staging:
uses: ./.github/workflows/onboarding-api.yml
secrets: inherit
with:
deploy_env: catalyst
2 changes: 0 additions & 2 deletions .github/workflows/centrifuge-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
tags:
- "rc*"
paths:
- 'centrifuge-app/**'
- 'centrifuge-js/**'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/onboarding-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
tags:
- "rc*"
paths:
- 'onboarding-api/**'
- '.github/workflows/onboarding-api.yml'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pinning-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
tags:
- "rc*"
paths:
- 'pinning-api/**'
- '.github/workflows/pinning-api.yml'
Expand Down

0 comments on commit 2e9f9b0

Please sign in to comment.