From ccd1f4c5ebbdc5de58b090f052bde8305875215b Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Mon, 8 Jul 2024 12:43:10 +0530 Subject: [PATCH 1/2] fix: Updated tag images workflow --- .github/workflows/tag-images.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tag-images.yml b/.github/workflows/tag-images.yml index 7792f4bbe..3d520ec1e 100644 --- a/.github/workflows/tag-images.yml +++ b/.github/workflows/tag-images.yml @@ -37,8 +37,8 @@ jobs: DOCKER_NAME: impler/api DOCKER_VERSION: ${{ env.DOCKER_VERSION }} run: | - docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod - docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION + docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest + docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION" @@ -48,8 +48,8 @@ jobs: DOCKER_NAME: impler/queue-manager DOCKER_VERSION: ${{ env.DOCKER_VERSION }} run: | - docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod - docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION + docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest + docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION" @@ -59,8 +59,8 @@ jobs: DOCKER_NAME: impler/embed DOCKER_VERSION: ${{ env.DOCKER_VERSION }} run: | - docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod - docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION + docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest + docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION" @@ -70,8 +70,8 @@ jobs: DOCKER_NAME: impler/widget DOCKER_VERSION: ${{ env.DOCKER_VERSION }} run: | - docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod - docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION + docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest + docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION" @@ -81,7 +81,7 @@ jobs: DOCKER_NAME: impler/web DOCKER_VERSION: ${{ env.DOCKER_VERSION }} run: | - docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod - docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION + docker pull ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest + docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$DOCKER_VERSION" From 1a8fb2786eed300ee5b589ff8f32ce9c6c52d762 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Mon, 8 Jul 2024 12:43:43 +0530 Subject: [PATCH 2/2] fix: Package publishing --- .github/workflows/publish-prod-packages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-prod-packages.yml b/.github/workflows/publish-prod-packages.yml index ff1d66a28..492a3f9ca 100644 --- a/.github/workflows/publish-prod-packages.yml +++ b/.github/workflows/publish-prod-packages.yml @@ -48,7 +48,7 @@ jobs: run: | npm config set --workspaces=false --include-workspace-root registry https://registry.npmjs.org/ npm config set --workspaces=false --include-workspace-root //registry.npmjs.org/:_authToken=$NPM_TOKEN - npm publish --access public + NPM_TOKEN=$NPMTOKEN npm publish --access public - name: Publish @impler/react package on NPM 📦 env: @@ -57,4 +57,4 @@ jobs: run: | npm config set --workspaces=false --include-workspace-root registry https://registry.npmjs.org/ npm config set --workspaces=false --include-workspace-root //registry.npmjs.org/:_authToken=$NPM_TOKEN - npm publish --access public + NPM_TOKEN=$NPMTOKEN npm publish --access public