@@ -11,11 +11,16 @@ concurrency:
1111 cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
1212permissions :
1313 contents : read
14+ packages : read
15+ env :
16+ MY_GCR_NAMESPACE : ' juliaparallel'
17+ MY_GCR_IMAGENAME : ' dask-jobqueue-ci-images'
1418jobs :
1519 finalize :
1620 timeout-minutes : 10
1721 needs :
1822 - unit-tests
23+ - example-pull-gcr
1924 # Important: the next line MUST be `if: always()`.
2025 # Do not change that line.
2126 # That line is necessary to make sure that this job runs even if tests fail.
@@ -24,11 +29,13 @@ jobs:
2429 steps :
2530 - run : |
2631 echo unit-tests: ${{ needs.unit-tests.result }}
32+ echo example-pull-gcr: ${{ needs.example-pull-gcr.result }}
2733 - run : exit 1
2834 # The last line must NOT end with ||
2935 # All other lines MUST end with ||
3036 if : |
31- (needs.unit-tests.result != 'success')
37+ (needs.unit-tests.result != 'success') ||
38+ (needs.example-pull-gcr.result != 'success')
3239 unit-tests :
3340 runs-on : ubuntu-latest
3441 timeout-minutes : 20
@@ -121,3 +128,30 @@ jobs:
121128 # If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors.
122129 # If this is not a PR, then DO fail CI if the Codecov upload errors.
123130 fail_ci_if_error : ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }}
131+ example-pull-gcr :
132+ runs-on : ubuntu-latest
133+ timeout-minutes : 20
134+ steps :
135+ - uses : actions/checkout@v4
136+ with :
137+ persist-credentials : false
138+ - name : Print Docker version
139+ run : |
140+ docker --version
141+ docker version
142+ # - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
143+ # if: false
144+ # with:
145+ # registry: ghcr.io
146+ # username: ${{ github.actor }}
147+ # password: ${{ secrets.GITHUB_TOKEN }}
148+ - name : Docker pull
149+ run : |
150+ docker pull "ghcr.io/${MY_GCR_NAMESPACE:?}/${MY_GCR_IMAGENAME:?}@${MY_DIGEST_HTCONDOR_EXECUTE:?}"
151+ env :
152+ # We intentionally pull by full-length digest (NOT tag) for reproducibility:
153+ MY_DIGEST_HTCONDOR_EXECUTE : ' sha256:d4384c19cdb2f26bae15b1feef3a12bde66554658562df2626c03ae870003555' # htcondor-execute
154+ - name : List images
155+ run : |
156+ docker ps -a
157+ docker images
0 commit comments