File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Docker image
2+
3+ on : push
4+
5+ jobs :
6+ push_to_registry :
7+ name : Push Docker image to Docker Hub
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Check out the repo
11+ uses : actions/checkout@v3
12+
13+ - name : Log in to Docker Hub
14+ uses : docker/login-action@v2
15+ with :
16+ username : ${{ secrets.DOCKERHUB_USERNAME }}
17+ password : ${{ secrets.DOCKERHUB_TOKEN }}
18+
19+ - name : Extract metadata (tags, labels) for Docker
20+ id : meta
21+ uses : docker/metadata-action@v2
22+ with :
23+ images : mstiri/kube-cert-acm
24+
25+ - name : Build and push Docker image
26+ uses : docker/build-push-action@v4
27+ with :
28+ context : .
29+ push : true
30+ tags : ${{ steps.meta.outputs.tags }}
31+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments