Commit 709686b 1 parent d444021 commit 709686b Copy full SHA for 709686b
File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Push Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ push_to_docker_hub :
10
+ name : Build and Push to Docker Hub
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : read
14
+ packages : write
15
+ attestations : write
16
+ id-token : write
17
+
18
+ steps :
19
+ - name : Check out repository
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Log in to Docker Hub
23
+ uses : docker/login-action@v3
24
+ with :
25
+ username : ${{ secrets.DOCKER_USERNAME }}
26
+ password : ${{ secrets.DOCKER_PASSWORD }}
27
+
28
+ - name : Extract metadata (tags, labels)
29
+ id : meta
30
+ uses : docker/metadata-action@v5
31
+ with :
32
+ images : implyapp/imply
33
+
34
+ - name : Build and push Docker image
35
+ uses : docker/build-push-action@v5
36
+ with :
37
+ context : .
38
+ file : ./Dockerfile
39
+ push : true
40
+ tags : |
41
+ implyapp/imply:latest
42
+ labels : ${{ steps.meta.outputs.labels }}
43
+
44
+ - name : Generate artifact attestation
45
+ uses : actions/attest-build-provenance@v2
46
+ with :
47
+ subject-name : implyapp/imply
You can’t perform that action at this time.
0 commit comments