Skip to content

Commit 28632d6

Browse files
committed
add access key to forgotten docker pushes
1 parent 55071fe commit 28632d6

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ jobs:
210210
uses: docker/setup-buildx-action@v3
211211
- if: ${{ steps.pydep-precheck.outputs.do_generation == 'true' }}
212212
uses: docker/build-push-action@v6
213-
secrets: |
214-
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
215213
with:
216214
context: .
217215
file: ./Dockerfile
218216
tags: skymap_scanner:py-dep-this
219217
load: true
220218
build-args: INCLUDE_GCD=0 # for pip recording we don't need GCD files
219+
secrets: |
220+
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
221221
- if: ${{ steps.pydep-precheck.outputs.do_generation == 'true' }}
222222
uses: WIPACrepo/wipac-dev-py-dependencies-action@v3.4
223223

@@ -236,8 +236,6 @@ jobs:
236236
fetch-depth: 0 # setuptools-scm needs to access git tags
237237
- uses: docker/setup-buildx-action@v3
238238
- uses: docker/build-push-action@v6
239-
secrets: |
240-
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
241239
with:
242240
context: .
243241
file: ./Dockerfile
@@ -278,15 +276,14 @@ jobs:
278276
fetch-depth: 0 # setuptools-scm needs to access git tags
279277
- uses: docker/setup-buildx-action@v3
280278
- uses: docker/build-push-action@v6
281-
secrets: |
282-
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
283279
with:
284280
context: .
285281
file: ./Dockerfile
286282
tags: ${{ env._SCANNER_IMAGE_DOCKER }}
287283
load: true
288284
build-args: INCLUDE_GCD=0 # for dummy tests we don't need GCD files
289-
285+
secrets: |
286+
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
290287
- if: ${{ matrix.container_platform == 'apptainer' }}
291288
name: "apptainer only: install apptainer"
292289
run: |
@@ -514,14 +511,13 @@ jobs:
514511
fetch-depth: 0 # setuptools-scm needs to access git tags
515512
- uses: docker/setup-buildx-action@v3
516513
- uses: docker/build-push-action@v6
517-
secrets: |
518-
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
519514
with:
520515
context: .
521516
file: ./Dockerfile
522517
tags: ${{ env._SCANNER_IMAGE_DOCKER }}
523518
load: true
524-
519+
secrets: |
520+
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
525521
- name: run
526522
timeout-minutes: 55 # on average max~=35min
527523
run: |
@@ -615,14 +611,13 @@ jobs:
615611
fetch-depth: 0 # setuptools-scm needs to access git tags
616612
- uses: docker/setup-buildx-action@v3
617613
- uses: docker/build-push-action@v6
618-
secrets: |
619-
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
620614
with:
621615
context: .
622616
file: ./Dockerfile
623617
tags: ${{ env._SCANNER_IMAGE_DOCKER }}
624618
load: true
625-
619+
secrets: |
620+
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
626621
- name: run
627622
run: |
628623
set -euo pipefail; echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
@@ -670,13 +665,13 @@ jobs:
670665
fetch-depth: 0 # setuptools-scm needs to access git tags
671666
- uses: docker/setup-buildx-action@v3
672667
- uses: docker/build-push-action@v6
673-
secrets: |
674-
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
675668
with:
676669
context: .
677670
file: ./Dockerfile
678671
tags: ${{ env._SCANNER_IMAGE_DOCKER }}
679672
load: true
673+
secrets: |
674+
github_token=${{ secrets.PERSONAL_ACCESS_TOKEN}}
680675
681676
- name: run
682677
timeout-minutes: 10 # on average max~=5min

0 commit comments

Comments
 (0)