File tree Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 name : " Build Kafka-Proxy image"
1111 steps :
12+ - name : Get the tag
13+ id : get_tag
14+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1215 - name : " Check out repository"
1316 uses : actions/checkout@v2
14-
17+ with :
18+ ref : ${{ steps.get_tag.outputs.result }}
1519 - name : " Login"
1620 uses : docker/login-action@v1
1721 with :
1822 username : ${{ secrets.DOCKER_USERNAME }}
1923 password : ${{ secrets.DOCKER_PASSWORD }}
20-
21- - name : Get the tag
22- id : get_tag
23- run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
24-
2524 - name : " Publish to Docker Hub"
2625 uses : docker/build-push-action@v2
2726 with :
Original file line number Diff line number Diff line change 1+ name : ' Manual build'
2+ on : [workflow_dispatch]
3+
4+ jobs :
5+ build_docker :
6+ runs-on : ubuntu-latest
7+ name : " Build Kafka-Proxy image"
8+ steps :
9+ - name : " Check out repository"
10+ uses : actions/checkout@v2
11+
12+ - name : " Login"
13+ uses : docker/login-action@v1
14+ with :
15+ username : ${{ secrets.DOCKER_USERNAME }}
16+ password : ${{ secrets.DOCKER_PASSWORD }}
17+
18+ - name : " Publish to Docker Hub"
19+ uses : docker/build-push-action@v2
20+ with :
21+ push : true
22+ tags : shmel1k/kafka-proxy:latest
You can’t perform that action at this time.
0 commit comments