This repository was archived by the owner on Jan 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ jobs:
2828 username : ${{ secrets.DOCKER_HUB_USERNAME }}
2929 password : ${{ secrets.DOCKER_HUB_TOKEN }}
3030
31- - name : Build and push
31+ - name : Build and Push
3232 id : docker_build
3333 uses : docker/build-push-action@v2
3434 with :
3535 platforms : linux/amd64,linux/arm/v7,linux/arm64
3636 push : true
3737 tags : networkboot/dhcpd:latest
3838
39- - name : Image digest
39+ - name : Print Image Digest
4040 run : echo ${{ steps.docker_build.outputs.digest }}
Original file line number Diff line number Diff line change @@ -12,15 +12,11 @@ jobs:
1212 with :
1313 tagRegex : " v(.*)"
1414
15- - name : Parse semver string
16- id : semver_parser
17- uses : booxmedialtd/ws-action-parse-semver@v1
18- with :
19- input_string : $GIT_TAG_NAME
20- version_extractor_regex : ' \/v(.*)$'
21- - name : Use parsed semver
22- run : |
23- echo "v${{ steps.semver_parser.outputs.fullversion }}"
15+ - name : Parse Semver String
16+ id : semver-parser
17+ uses : booxmedialtd/ws-action-parse-semver@v1
18+ with :
19+ input_string : " ${{ steps.get-tag.outputs.tag }}"
2420
2521 - name : Checkout Repository
2622 uses : actions/checkout@v2
@@ -41,13 +37,13 @@ jobs:
4137 username : ${{ secrets.DOCKER_HUB_USERNAME }}
4238 password : ${{ secrets.DOCKER_HUB_TOKEN }}
4339
44- - name : Build and push
40+ - name : Build and Push
4541 id : docker_build
4642 uses : docker/build-push-action@v2
4743 with :
4844 platforms : linux/amd64,linux/arm/v7,linux/arm64
4945 push : true
50- tags : networkboot/dhcpd:${{ steps.get-tag .outputs.tag }}
46+ tags : networkboot/dhcpd:${{ steps.semver-parser .outputs.fullversion }}
5147
52- - name : Image digest
48+ - name : Print Image Digest
5349 run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments