mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 01:19:24 +00:00
push fixes for secrets
This commit is contained in:
parent
a116f959e6
commit
65bf6ba64c
15
.github/workflows/PR-Auto-Deploy-V2.yml
vendored
15
.github/workflows/PR-Auto-Deploy-V2.yml
vendored
@ -260,8 +260,8 @@ jobs:
|
|||||||
echo "Backend image needs to be built"
|
echo "Backend image needs to be built"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build and push V2 frontend image (with NPM token)
|
- name: Build and push V2 frontend image
|
||||||
if: steps.check-frontend.outputs.exists == 'false' && secrets.NPM_TOKEN != ''
|
if: steps.check-frontend.outputs.exists == 'false'
|
||||||
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
@ -273,17 +273,6 @@ jobs:
|
|||||||
secrets: |
|
secrets: |
|
||||||
npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
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
|
- name: Build and push V2 backend image
|
||||||
if: steps.check-backend.outputs.exists == 'false'
|
if: steps.check-backend.outputs.exists == 'false'
|
||||||
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
||||||
|
17
.github/workflows/deploy-on-v2-commit.yml
vendored
17
.github/workflows/deploy-on-v2-commit.yml
vendored
@ -91,8 +91,8 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_API }}
|
password: ${{ secrets.DOCKER_HUB_API }}
|
||||||
|
|
||||||
- name: Build and push frontend image (with NPM token)
|
- name: Build and push frontend image
|
||||||
if: steps.check-frontend.outputs.exists == 'false' && secrets.NPM_TOKEN != ''
|
if: steps.check-frontend.outputs.exists == 'false'
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
@ -105,19 +105,6 @@ jobs:
|
|||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
secrets: |
|
secrets: |
|
||||||
npmrc=//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
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
|
- name: Build and push backend image
|
||||||
if: steps.check-backend.outputs.exists == 'false'
|
if: steps.check-backend.outputs.exists == 'false'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user