File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build Docker Image
1+ name : Build and Publish Docker Image
22
33on :
44 workflow_call :
1818 - name : Set up Docker Buildx
1919 uses : docker/setup-buildx-action@v3
2020
21- - name : Build Docker image
22- run : docker build -f ./src/BuslyCLI.Console/Dockerfile -t busly-cli .
21+
22+ - name : Log in to Docker Hub
23+ uses : docker/login-action@v3
24+ with :
25+ username : tragiccode
26+ password : ${{ secrets.DOCKERHUB_TOKEN }}
27+
28+ - name : Extract metadata (tags, labels) for Docker
29+ id : meta
30+ uses : docker/metadata-action@v5
31+ with :
32+ images : tragiccode/busly-cli
33+
34+ - name : Build and push Docker image
35+ id : push
36+ uses : docker/build-push-action@v6
37+ with :
38+ context : .
39+ file : ./src/BuslyCLI.Console/Dockerfile
40+ push : true
41+ tags : ${{ steps.meta.outputs.tags }}
42+ labels : ${{ steps.meta.outputs.labels }}
43+
44+ - name : Generate artifact attestation
45+ uses : actions/attest-build-provenance@v3
46+ with :
47+ subject-name : index.docker.io/tragiccode/busly-cli
48+ subject-digest : ${{ steps.push.outputs.digest }}
49+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments