push fixes for secrets

This commit is contained in:
Anthony Stirling 2025-08-26 13:36:59 +01:00
parent a116f959e6
commit 65bf6ba64c
2 changed files with 4 additions and 28 deletions

View File

@ -260,8 +260,8 @@ jobs:
echo "Backend image needs to be built"
fi
- name: Build and push V2 frontend image (with NPM token)
if: steps.check-frontend.outputs.exists == 'false' && secrets.NPM_TOKEN != ''
- name: Build and push V2 frontend image
if: steps.check-frontend.outputs.exists == 'false'
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
@ -273,17 +273,6 @@ jobs:
secrets: |
npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Build and push V2 frontend image (anonymous)
if: steps.check-frontend.outputs.exists == 'false' && secrets.NPM_TOKEN == ''
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
file: ./docker/frontend/Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/test:v2-frontend-${{ steps.commit-hashes.outputs.frontend_short }}
build-args: VERSION_TAG=v2-alpha
platforms: linux/amd64
- name: Build and push V2 backend image
if: steps.check-backend.outputs.exists == 'false'
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0

View File

@ -91,8 +91,8 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_API }}
- name: Build and push frontend image (with NPM token)
if: steps.check-frontend.outputs.exists == 'false' && secrets.NPM_TOKEN != ''
- name: Build and push frontend image
if: steps.check-frontend.outputs.exists == 'false'
uses: docker/build-push-action@v6
with:
context: .
@ -105,19 +105,6 @@ jobs:
platforms: linux/amd64
secrets: |
npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Build and push frontend image (anonymous)
if: steps.check-frontend.outputs.exists == 'false' && secrets.NPM_TOKEN == ''
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/frontend/Dockerfile
push: true
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/test:v2-frontend-${{ steps.commit-hashes.outputs.frontend_short }}
${{ secrets.DOCKER_HUB_USERNAME }}/test:v2-frontend-latest
build-args: VERSION_TAG=v2-alpha
platforms: linux/amd64
- name: Build and push backend image
if: steps.check-backend.outputs.exists == 'false'