mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: passing docker hub secrets to build workflow
This commit is contained in:
1 parent
17277da171
commit
bf6aabb1c5
5 files changed
+15
-2
No files matched your search
@@ -16,6 +16,12 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
description: 'Target to build'
|
description: 'Target to build'
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
DOCKERHUB_USERNAME:
|
||||||
|
required: true
|
||||||
|
DOCKERHUB_TOKEN:
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ jobs:
|
|||||||
imageName: 'linuxodyssey/backend'
|
imageName: 'linuxodyssey/backend'
|
||||||
dockerfilePath: './server/Dockerfile'
|
dockerfilePath: './server/Dockerfile'
|
||||||
target: prod
|
target: prod
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
build-frontend:
|
build-frontend:
|
||||||
uses: ./.github/workflows/build-docker-image.yml
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
@@ -17,6 +18,7 @@ jobs:
|
|||||||
imageName: 'linuxodyssey/frontend'
|
imageName: 'linuxodyssey/frontend'
|
||||||
dockerfilePath: './app/Dockerfile'
|
dockerfilePath: './app/Dockerfile'
|
||||||
target: prod
|
target: prod
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
build-analytics:
|
build-analytics:
|
||||||
uses: ./.github/workflows/build-docker-image.yml
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
@@ -24,9 +26,11 @@ jobs:
|
|||||||
imageName: 'linuxodyssey/analytics'
|
imageName: 'linuxodyssey/analytics'
|
||||||
dockerfilePath: './packages/analytics/Dockerfile'
|
dockerfilePath: './packages/analytics/Dockerfile'
|
||||||
target: prod
|
target: prod
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
build-base:
|
build-base:
|
||||||
uses: ./.github/workflows/build-docker-image.yml
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
with:
|
with:
|
||||||
imageName: 'linuxodyssey/base'
|
imageName: 'linuxodyssey/base'
|
||||||
dockerfilePath: './quests/Dockerfile'
|
dockerfilePath: './quests/Dockerfile'
|
||||||
|
secrets: inherit
|
||||||
@@ -12,6 +12,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
needs: ci-checks
|
needs: ci-checks
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
|
|||||||
@@ -24,5 +24,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/build.yml
|
|
||||||
needs: ci-checks
|
needs: ci-checks
|
||||||
|
uses: ./.github/workflows/build.yml
|
||||||
|
secrets: inherit
|
||||||
@@ -10,8 +10,9 @@ jobs:
|
|||||||
uses: ./.github/workflows/ci-checks.yml
|
uses: ./.github/workflows/ci-checks.yml
|
||||||
|
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/build.yml
|
|
||||||
needs: ci-checks
|
needs: ci-checks
|
||||||
|
uses: ./.github/workflows/build.yml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
|
|||||||
Reference in new issue
Block a user