@@ -11,11 +11,16 @@ concurrency:
11
11
cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
12
12
permissions :
13
13
contents : read
14
+ packages : read
15
+ env :
16
+ MY_GCR_NAMESPACE : ' juliaparallel'
17
+ MY_GCR_IMAGENAME : ' dask-jobqueue-ci-images'
14
18
jobs :
15
19
finalize :
16
20
timeout-minutes : 10
17
21
needs :
18
22
- unit-tests
23
+ - example-pull-gcr
19
24
# Important: the next line MUST be `if: always()`.
20
25
# Do not change that line.
21
26
# That line is necessary to make sure that this job runs even if tests fail.
@@ -24,11 +29,13 @@ jobs:
24
29
steps :
25
30
- run : |
26
31
echo unit-tests: ${{ needs.unit-tests.result }}
32
+ echo example-pull-gcr: ${{ needs.example-pull-gcr.result }}
27
33
- run : exit 1
28
34
# The last line must NOT end with ||
29
35
# All other lines MUST end with ||
30
36
if : |
31
- (needs.unit-tests.result != 'success')
37
+ (needs.unit-tests.result != 'success') ||
38
+ (needs.example-pull-gcr.result != 'success')
32
39
unit-tests :
33
40
runs-on : ubuntu-latest
34
41
timeout-minutes : 20
@@ -121,3 +128,30 @@ jobs:
121
128
# If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors.
122
129
# If this is not a PR, then DO fail CI if the Codecov upload errors.
123
130
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