File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: "Build Docker"
22
33on :
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'
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ name: 'Push'
22
33on :
44 push :
5- branches : master
6- tags : v*
5+ branches :
6+ - " master"
7+ tags :
8+ - " v*"
79
810concurrency :
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments