Skip to content

Commit da56f82

Browse files
committed
ci: fix secrets access
1 parent d5a4f23 commit da56f82

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

.github/workflows/_buildx.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: "Build Docker"
22

33
on:
44
workflow_call:
5+
secrets:
6+
DOCKERHUB_USERNAME:
7+
required: true
8+
DOCKERHUB_TOKEN:
9+
required: true
510
inputs:
611
tag_prefix:
712
description: 'The tag prefix to use'

.github/workflows/pull_request.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
call-test:
1616
uses: ./.github/workflows/_test.yml
1717
secrets:
18-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN}}
18+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1919
call-swagger-check:
2020
uses: ./.github/workflows/_swagger-check.yml
2121
call-mkdocs-check:
@@ -32,10 +32,16 @@ jobs:
3232
needs: call-gorelease
3333
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
3434
uses: ./.github/workflows/_buildx.yml
35+
secrets:
36+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
37+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3538
call-buildx-alpine:
3639
needs: call-gorelease
3740
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
3841
uses: ./.github/workflows/_buildx.yml
42+
secrets:
43+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
44+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3945
with:
4046
tag_prefix: alpine-
4147
dockerfile: Dockerfile.alpine

.github/workflows/push.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: 'Push'
22

33
on:
44
push:
5-
branches: master
6-
tags: v*
5+
branches:
6+
- "master"
7+
tags:
8+
- "v*"
79

810
concurrency:
911
group: ci-tests-${{ github.ref }}-1
@@ -24,10 +26,16 @@ jobs:
2426
call-buildx:
2527
needs: call-gorelease
2628
uses: ./.github/workflows/_buildx.yml
29+
secrets:
30+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
31+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2732
call-buildx-alpine:
2833
needs: call-gorelease
2934
# only build on pull requests from the same repo for now
3035
uses: ./.github/workflows/_buildx.yml
36+
secrets:
37+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
38+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3139
with:
3240
tag_prefix: alpine-
3341
dockerfile: Dockerfile.alpine

.github/workflows/version_bump.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,15 @@ jobs:
3636
call-buildx:
3737
needs: call-gorelease
3838
uses: ./.github/workflows/_buildx.yml
39+
secrets:
40+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
41+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
3942
call-buildx-alpine:
4043
needs: call-gorelease
4144
uses: ./.github/workflows/_buildx.yml
45+
secrets:
46+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
47+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
4248
with:
4349
tag_prefix: alpine-
4450
dockerfile: Dockerfile.alpine

0 commit comments

Comments
 (0)