From bc791c613aae84150d7cc40cfd603390a19f17e4 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 26 May 2023 18:19:54 +0200 Subject: [PATCH] Publish to docker before pushing to npm --- .github/workflows/release-develop.yml | 16 ++++++++-------- .github/workflows/release-master.yml | 26 +++++++++++++------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release-develop.yml b/.github/workflows/release-develop.yml index ebd2f4c3ef..332348832a 100644 --- a/.github/workflows/release-develop.yml +++ b/.github/workflows/release-develop.yml @@ -54,6 +54,14 @@ jobs: - run: yarn build --configuration=production - run: yarn build:sdk + - name: Build/release Docker images + run: | + docker login -u $DOCKER_USER -p $DOCKER_PASSWORD + yarn build:docker:develop + env: + DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} + - name: Reset pro dependencies run: node scripts/resetProDependencies.js @@ -69,14 +77,6 @@ jobs: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc yarn release:develop - - name: Build/release Docker images - run: | - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - yarn build:docker:develop - env: - DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} - release-helm-chart: needs: [release-images] runs-on: ubuntu-latest diff --git a/.github/workflows/release-master.yml b/.github/workflows/release-master.yml index 304b0de100..a85dbd9c62 100644 --- a/.github/workflows/release-master.yml +++ b/.github/workflows/release-master.yml @@ -60,6 +60,19 @@ jobs: - run: yarn build --configuration=production - run: yarn build:sdk + - name: "Get Previous tag" + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + + - name: Build/release Docker images + run: | + docker login -u $DOCKER_USER -p $DOCKER_PASSWORD + yarn build:docker + env: + DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} + BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }} + - name: Reset pro dependencies run: node scripts/resetProDependencies.js @@ -76,19 +89,6 @@ jobs: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc yarn release - - name: "Get Previous tag" - id: previoustag - uses: "WyriHaximus/github-action-get-previous-tag@v1" - - - name: Build/release Docker images - run: | - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - yarn build:docker - env: - DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} - BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }} - release-helm-chart: needs: [release-images] runs-on: ubuntu-latest