Skip to content

Commit

Permalink
fix(backend): trigger the backend release (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel authored Jun 29, 2024
1 parent 7369c58 commit a5d7623
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:

- name: Trigger Backend Release
run: |
BACKEND_VERSION=$(jq -r '.releases[] | select(.name == "@snipcode/core") | .newVersion' release.json)
BACKEND_VERSION=$(jq -r '.releases[] | select(.name == "@snipcode/backend") | .newVersion' release.json)
if [ -n "$BACKEND_VERSION" ]; then
echo "Ready to release Backend version $BACKEND_VERSION"
gh workflow run deploy-backend.yml -r "${{ secrets.GH_BRANCH }}" -f version=$BACKEND_VERSION
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
branches:
- dev
paths:
- 'apps/core/src/**'
- 'apps/core/Dockerfile'
- 'apps/backend/src/**'
- 'apps/backend/Dockerfile'

workflow_dispatch:
inputs:
Expand All @@ -32,7 +32,7 @@ jobs:
uses: ./.github/actions/install-dependencies

- name: Generate sourcemaps from build
run: yarn build:prod --filter=...@snipcode/core
run: yarn build:prod --filter=...@snipcode/backend

- name: Create a Sentry release
env:
Expand All @@ -43,16 +43,16 @@ jobs:
run: |
curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION="2.2.0" bash
sentry-cli releases new "$VERSION"
sentry-cli releases files "$VERSION" upload-sourcemaps ./apps/core/build
sentry-cli releases files "$VERSION" upload-sourcemaps ./apps/backend/build
sentry-cli releases finalize "$VERSION"
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Copy the core Dockerfile in the root repository
run: cp apps/core/Dockerfile .
- name: Copy the backend Dockerfile in the root repository
run: cp apps/backend/Dockerfile .

- name: Build, tag, and push docker image to Amazon ECR
env:
Expand Down

0 comments on commit a5d7623

Please sign in to comment.