File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create and publish a Docker image
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ pull_request :
6
+ env :
7
+ REGISTRY : ghcr.io
8
+ IMAGE_NAME : ${{ github.repository }}
9
+ jobs :
10
+ build-and-push-image :
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : read
14
+ packages : write
15
+ attestations : write
16
+ id-token : write
17
+ steps :
18
+ - name : Login to Docker Hub
19
+ uses : meta-introspector/login-action@v3
20
+ with :
21
+ username : ${{ vars.DOCKER_HUB_USERNAME }}
22
+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
23
+ - name : Build and push Docker image
24
+ id : push
25
+ uses : meta-introspector/build-push-action@v6.10.0
26
+ with :
27
+ platforms : linux/arm64,linux/arm64/v8
28
+ context : .
29
+ push : true
30
+ tags : |
31
+ ${{ steps.meta.outputs.tags }}
32
+ labels : ${{ steps.meta.outputs.labels }}
33
+
34
+
You can’t perform that action at this time.
0 commit comments