16
16
required : false
17
17
default : false
18
18
19
+ push :
20
+ branches :
21
+ - cp/test-ucm-docker-image
22
+
19
23
jobs :
20
24
docker-image :
21
25
name : Build and push ucm docker image
22
26
runs-on : ubuntu-20.04
27
+
28
+ # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
29
+ permissions :
30
+ contents : read
31
+ # Allow uploading the docker image to the container registry
32
+ packages : write
33
+ # Allow creating and updating the artifact attestation
34
+ attestations : write
35
+ # Required to get user information for building attestations
36
+ id-token : write
37
+
38
+ env :
39
+ container_registry : ghcr.io
40
+ docker_image_name : ${{ github.repository }}
41
+
42
+
23
43
steps :
44
+ - uses : actions/checkout@v4
45
+
24
46
- name : Download ucm executable and ucm UI
25
47
uses : actions/download-artifact@v4
26
48
with :
27
- path : /tmp/ucm
49
+ name : bundle-linux
50
+ github-token : ${{ secrets.GITHUB_TOKEN }}
51
+ run-id : 8975410616
52
+ path : ./tmp/downloads
53
+
54
+ - name : Unpack ucm bundle tar
55
+ run : |
56
+ ls -lah ./tmp/downloads
57
+ mkdir -p ./tmp/ucm
58
+ tar -xvf ./tmp/downloads/ucm-*.tar.gz -C ./tmp/ucm
59
+ ls -lah ./tmp/ucm
28
60
29
61
# Configure Docker's builder,
30
62
# This seems necessary to support docker cache layers.
@@ -49,15 +81,13 @@ jobs:
49
81
# We tag latest manually below.
50
82
latest=false
51
83
tags : |
52
- type=schedule,pattern={{date 'YYYY-MM-DD'}}
53
- type=raw,value=v${{ inputs.version }} ,enable=${{ github.event.inputs.is_release }}
84
+ type=schedule
85
+ type=raw,value=v0.5.19 ,enable=true
54
86
type=ref,event=tag
55
- type=ref,event=push
56
87
type=sha,format=long
57
- type=raw,tag=${{ inputs.image_tag }}
58
88
# set latest tag for pushes to trunk
59
- type=raw,value=latest,enable=${{ github.event.inputs.is_release }}
60
- type=raw,value=nightly,enable=${{ !github.event.inputs.is_release }}
89
+ type=raw,value=latest,enable=true
90
+ type=raw,value=nightly,enable=false
61
91
62
92
63
93
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
67
97
id : push
68
98
uses : docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
69
99
with :
70
- context : ./docker/
100
+ context : ./
101
+ platforms : linux/amd64,linux/arm64
71
102
push : true
72
103
tags : ${{ steps.meta.outputs.tags }}
73
104
labels : ${{ steps.meta.outputs.labels }}
0 commit comments