@@ -5,43 +5,47 @@ on: [ push, workflow_dispatch ]
5
5
jobs :
6
6
setup :
7
7
runs-on : ubuntu-latest
8
+
9
+ outputs :
10
+ build_url : ${{ steps.data.outputs.build_url }}
11
+
8
12
steps :
9
- - name : Set and debug environment variables
13
+ - id : data
14
+ name : Populates outputs
10
15
run : |
11
- JOB_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
12
- echo "JOB_URL=$JOB_URL" >> "$GITHUB_ENV"
13
-
14
- env | sort
16
+ echo "build_url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" >> "$GITHUB_OUTPUT"
15
17
16
18
build :
17
19
if : github.event_name != 'release'
18
20
21
+ needs : setup
22
+
19
23
permissions :
20
24
packages : write
21
25
contents : read
22
26
23
27
runs-on : ubuntu-latest
24
28
25
29
strategy :
30
+ fail-fast : false
26
31
matrix :
27
32
platform :
28
33
- linux/amd64
29
34
- linux/arm64
30
- fail-fast : false
31
35
32
36
steps :
33
37
- name : Checkout repository
34
38
uses : actions/checkout@v3
35
39
36
- - name : Docker meta
40
+ - name : Construct image tags and labels
37
41
id : meta
38
42
uses : docker/metadata-action@v5
39
43
with :
40
44
images : |
41
45
ghcr.io/berkeleylibrary/geodata
42
46
labels : |
43
47
edu.berkeley.lib.build-timestamp=${{ github.event.repository.updated_at }}
44
- edu.berkeley.lib.build-url=${{ env.JOB_URL }}
48
+ edu.berkeley.lib.build-url=${{ needs.setup.outputs.build_url }}
45
49
edu.berkeley.lib.git-ref-name=${{ github.ref_name }}
46
50
edu.berkeley.lib.git-repository-url=${{ github.repositoryUrl }}
47
51
edu.berkeley.lib.git-sha=${{ github.sha }}
60
64
push : false
61
65
build-args : |
62
66
BUILD_TIMESTAMP=${{ github.event.repository.updated_at }}
63
- BUILD_URL=${{ env.JOB_URL }}
67
+ BUILD_URL=${{ needs.setup.outputs.build_url }}
64
68
GIT_REF_NAME=${{ github.ref_name }}
65
69
GIT_REPOSITORY_URL=${{ github.repositoryUrl }}
66
70
GIT_SHA=${{ github.sha }}
0 commit comments