Skip to content

Commit

Permalink
chore: v2 community release changes
Browse files Browse the repository at this point in the history
  • Loading branch information
merrcury committed Sep 26, 2024
1 parent e8218f9 commit 2ef8a74
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/prepare-self-hosted-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,10 @@ jobs:
strategy:
fail-fast: false
matrix:
name: ['novu/api','novu/worker','novu/inbound-mail','novu/web','novu/webhook','novu/widget','novu/ws','novu/embed','novu/inbound-mail-ee','novu/worker-ee','novu/api-ee','novu/web-ee','novu/widget-ee','novu/embed-ee','novu/ws-ee','novu/webhook-ee']
name: ['novu/api','novu/worker','novu/web','novu/webhook','novu/ws']
steps:
- name: Git Checkout with Submodules
uses: actions/checkout@v4
if: contains(matrix.name, '-ee')
with:
submodules: true
token: ${{ secrets.SUBMODULES_TOKEN }}

- name: Git Checkout without Submodules
if: "!contains(matrix.name, '-ee')"
- name: Git Checkout
uses: actions/checkout@v4

- name: Variables
Expand All @@ -76,12 +69,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Link submodules
if: contains(matrix.name, '-ee')
run: pnpm symlink:submodules

- uses: ./.github/actions/free-space
name: Extend space in Action Container

- uses: ./.github/actions/setup-qemu
name: Setup QEMU and Docker Buildx

- name: Login To Registry
shell: bash
Expand All @@ -90,11 +82,7 @@ jobs:
GH_PASSWORD: ${{ secrets.GH_PACKAGES }}
run: |
echo $GH_PASSWORD | docker login ghcr.io -u $GH_ACTOR --password-stdin
- name: Set Bull MQ Env variable for EE
if: contains(matrix.name, '-ee')
shell: bash
run: |
echo "BULL_MQ_PRO_NPM_TOKEN=${{ secrets.BULL_MQ_PRO_NPM_TOKEN }}" >> $GITHUB_ENV
- name: Build ${{ env.SERVICE_NAME }} Community Docker Image
shell: bash
env:
Expand All @@ -104,11 +92,7 @@ jobs:
--platform=linux/amd64,linux/arm64 --provenance=false
--output=type=image,name=ghcr.io/${{ env.REGISTRY_OWNER }}/${{ env.SERVICE_NAME }},push-by-digest=true,name-canonical=true
run: |
if [ "${{ env.SERVICE_NAME }}" = "embed" ] || [ "${{ env.SERVICE_NAME }}" = "embed-ee" ]; then
cd libs/$SERVICE_COMMON_NAME
else
cd apps/$SERVICE_COMMON_NAME
fi
cd apps/$SERVICE_COMMON_NAME
pnpm run docker:build
docker images
- name: Check for EE files
Expand Down

0 comments on commit 2ef8a74

Please sign in to comment.