Skip to content

Commit 5c01e5b

Browse files
committed
Testing dockerhub.
1 parent 469c4e4 commit 5c01e5b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/docker-hub.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ env:
4444
# ]
4545

4646
jobs:
47-
generate_matrix:
47+
matrix:
4848
name: Generate Platform List
4949
runs-on: ubuntu-latest
5050
outputs:
@@ -65,11 +65,11 @@ jobs:
6565
build:
6666
name: Build
6767
runs-on: ubuntu-latest
68-
needs: generate_matrix
68+
needs: matrix
6969
strategy:
7070
fail-fast: false
7171
matrix:
72-
platform: ${{ fromJSON(needs.generate_matrix.outputs.platform_list) }}
72+
platform: ${{ fromJSON(needs.matrix.outputs.platform_list) }}
7373

7474
steps:
7575
- name: Checkout Repository
@@ -131,7 +131,7 @@ jobs:
131131
132132
manifest:
133133
name: Create and Push Manifest Lists
134-
needs: build
134+
needs: [matrix, build]
135135
# Only run when master or when tagging a version
136136
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.event_name != 'pull_request'
137137
runs-on: ubuntu-latest
@@ -144,8 +144,10 @@ jobs:
144144

145145
- name: Create and Push Manifest Lists
146146
run: |
147+
set -exuo pipefail
148+
147149
tags=("deps" "dev" "runtime" "cli")
148-
platforms=($(echo '${{ needs.generate_matrix.outputs.platform_list }}' | jq -r '.[]'))
150+
platforms=($(echo '${{ needs.matrix.outputs.platform_list }}' | jq -r '.[]'))
149151
150152
echo "Create all the tags by platform"
151153
@@ -189,14 +191,16 @@ jobs:
189191
190192
cleanup:
191193
name: Cleanup Platform Specific Tags
192-
needs: [build, manifest]
194+
needs: [matrix, build, manifest]
193195
runs-on: ubuntu-latest
194196
if: always()
195197
steps:
196198
- name: Remove Platform-Specific Tags
197199
run: |
200+
set -exuo pipefail
201+
198202
tags=("deps" "dev" "runtime" "cli")
199-
platforms=($(echo '${{ needs.generate_matrix.outputs.platform_list }}' | jq -r '.[]'))
203+
platforms=($(echo '${{ needs.matrix.outputs.platform_list }}' | jq -r '.[]'))
200204
201205
for tag in "${tags[@]}"; do
202206
for platform in "${platforms[@]}"; do

0 commit comments

Comments
 (0)