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