From a64debf51a5623772e8b9e2a286ab08733f57847 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 10:48:48 +0200 Subject: [PATCH 01/21] debugging --- .github/workflows/dockerize-tag.yml | 66 ++++++++++++++--------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index d89b5d6..ecd3f3e 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -12,42 +12,42 @@ jobs: with: tagRegex: "v(.*)" - - name: Parse semver string - id: semver_parser - uses: booxmedialtd/ws-action-parse-semver@v1 - with: - input_string: $GIT_TAG_NAME - version_extractor_regex: '\/v(.*)$' - - name: Use parsed semver - run: | - echo "v${{ steps.semver_parser.outputs.fullversion }}" + # - name: Parse semver string + # id: semver_parser + # uses: booxmedialtd/ws-action-parse-semver@v1 + # with: + # input_string: $GIT_TAG_NAME + # version_extractor_regex: '\/v(.*)$' + # - name: Use parsed semver + # run: | + # echo "v${{ steps.semver_parser.outputs.fullversion }}" - - name: Checkout Repository - uses: actions/checkout@v2 + # - name: Checkout Repository + # uses: actions/checkout@v2 - - name: Setup QEMU - id: qemu - uses: docker/setup-qemu-action@v1.0.1 - with: - platforms: linux/amd64,linux/arm/v7,linux/arm64 + # - name: Setup QEMU + # id: qemu + # uses: docker/setup-qemu-action@v1.0.1 + # with: + # platforms: linux/amd64,linux/arm/v7,linux/arm64 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v1.0.4 + # - name: Set up Docker Buildx + # id: buildx + # uses: docker/setup-buildx-action@v1.0.4 - - name: Login to Docker Hub - uses: docker/login-action@v1.8.0 - with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_TOKEN }} + # - name: Login to Docker Hub + # uses: docker/login-action@v1.8.0 + # with: + # username: ${{ secrets.DOCKER_HUB_USERNAME }} + # password: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Build and push - id: docker_build - uses: docker/build-push-action@v2 - with: - platforms: linux/amd64,linux/arm/v7,linux/arm64 - push: true - tags: networkboot/dhcpd:${{ steps.get-tag.outputs.tag }} + # - name: Build and push + # id: docker_build + # uses: docker/build-push-action@v2 + # with: + # platforms: linux/amd64,linux/arm/v7,linux/arm64 + # push: true + # tags: networkboot/dhcpd:${{ steps.get-tag.outputs.tag }} - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} + # - name: Image digest + # run: echo ${{ steps.docker_build.outputs.digest }} From 96c9e3e9651981f435a58f1182319a35a5a80286 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 10:51:40 +0200 Subject: [PATCH 02/21] debugging: uncommented semver-parser --- .github/workflows/dockerize-tag.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index ecd3f3e..f09e859 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -12,15 +12,15 @@ jobs: with: tagRegex: "v(.*)" - # - name: Parse semver string - # id: semver_parser - # uses: booxmedialtd/ws-action-parse-semver@v1 - # with: - # input_string: $GIT_TAG_NAME - # version_extractor_regex: '\/v(.*)$' - # - name: Use parsed semver - # run: | - # echo "v${{ steps.semver_parser.outputs.fullversion }}" + - name: Parse semver string + id: semver_parser + uses: booxmedialtd/ws-action-parse-semver@v1 + with: + input_string: $GIT_TAG_NAME + version_extractor_regex: '\/v(.*)$' + - name: Use parsed semver + run: | + echo "v${{ steps.semver_parser.outputs.fullversion }}" # - name: Checkout Repository # uses: actions/checkout@v2 From 194d3c32b775c50e1211fccd22ed23d5e6e50893 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 10:56:11 +0200 Subject: [PATCH 03/21] next try to find the bug --- .github/workflows/dockerize-tag.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index f09e859..d832e04 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -13,14 +13,14 @@ jobs: tagRegex: "v(.*)" - name: Parse semver string - id: semver_parser + id: semver-parser uses: booxmedialtd/ws-action-parse-semver@v1 with: - input_string: $GIT_TAG_NAME + input_string: 'refs/tags/v1.0.4' version_extractor_regex: '\/v(.*)$' - - name: Use parsed semver - run: | - echo "v${{ steps.semver_parser.outputs.fullversion }}" + # - name: Use parsed semver + # run: | + # echo "v${{ steps.semver-parser.outputs.fullversion }}" # - name: Checkout Repository # uses: actions/checkout@v2 From c58a7fe8c1ec46a4446358cafb7afecce6897c33 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 10:59:15 +0200 Subject: [PATCH 04/21] next attemp --- .github/workflows/dockerize-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index d832e04..e38989c 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -14,7 +14,7 @@ jobs: - name: Parse semver string id: semver-parser - uses: booxmedialtd/ws-action-parse-semver@v1 + uses: booxmedialtd/parse-semver@v1 with: input_string: 'refs/tags/v1.0.4' version_extractor_regex: '\/v(.*)$' From 7828c650c62292c49468d989b333a02868fa92ee Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:09:41 +0200 Subject: [PATCH 05/21] Added semver test file --- .github/workflows/semver.yml | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/semver.yml diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml new file mode 100644 index 0000000..6e0ca73 --- /dev/null +++ b/.github/workflows/semver.yml @@ -0,0 +1,56 @@ +name: Build and Push Tag +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' +jobs: + build-push-tag: + runs-on: ubuntu-latest + steps: + - uses: olegtarasov/get-tag@v2.1 + id: get-tag + with: + tagRegex: "v(.*)" + + - name: print get-tag result + run: echo $GIT_TAG_NAME + + # - name: Parse semver string + # id: semver-parser + # uses: booxmedialtd/parse-semver@v1 + # with: + # input_string: 'refs/tags/v1.0.4' + # version_extractor_regex: '\/v(.*)$' + + # - name: Use parsed semver + # run: echo "v${{ steps.semver-parser.outputs.fullversion }}" + + # - name: Checkout Repository + # uses: actions/checkout@v2 + + # - name: Setup QEMU + # id: qemu + # uses: docker/setup-qemu-action@v1.0.1 + # with: + # platforms: linux/amd64,linux/arm/v7,linux/arm64 + + # - name: Set up Docker Buildx + # id: buildx + # uses: docker/setup-buildx-action@v1.0.4 + + # - name: Login to Docker Hub + # uses: docker/login-action@v1.8.0 + # with: + # username: ${{ secrets.DOCKER_HUB_USERNAME }} + # password: ${{ secrets.DOCKER_HUB_TOKEN }} + + # - name: Build and push + # id: docker_build + # uses: docker/build-push-action@v2 + # with: + # platforms: linux/amd64,linux/arm/v7,linux/arm64 + # push: true + # tags: networkboot/dhcpd:${{ steps.get-tag.outputs.tag }} + + # - name: Image digest + # run: echo ${{ steps.docker_build.outputs.digest }} From 86b2d370c1daf9036d3c5db34418fb987d5c6663 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:13:56 +0200 Subject: [PATCH 06/21] updated --- .github/workflows/semver.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 6e0ca73..65d1ba1 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -1,4 +1,4 @@ -name: Build and Push Tag +name: Semver Test Workflow on: push: tags: @@ -14,6 +14,7 @@ jobs: - name: print get-tag result run: echo $GIT_TAG_NAME + run: echo $steps.get-tag.outputs.tag # - name: Parse semver string # id: semver-parser From 3d553478d0d58c49a9b25845dff3aac6a18b375b Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:15:32 +0200 Subject: [PATCH 07/21] updated --- .github/workflows/semver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 65d1ba1..35099c8 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -14,7 +14,7 @@ jobs: - name: print get-tag result run: echo $GIT_TAG_NAME - run: echo $steps.get-tag.outputs.tag + run: echo ${{ steps.get-tag.outputs.tag }} # - name: Parse semver string # id: semver-parser From 1e172e607af54c6ab3baf63d383dc56b7744e28a Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:19:40 +0200 Subject: [PATCH 08/21] updated --- .github/workflows/semver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 35099c8..efa95ff 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -14,7 +14,7 @@ jobs: - name: print get-tag result run: echo $GIT_TAG_NAME - run: echo ${{ steps.get-tag.outputs.tag }} + run: echo "${{ steps.get-tag.outputs.tag }}" # - name: Parse semver string # id: semver-parser From 66977574c13386abc328c4de540b68bcde08c88b Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:24:12 +0200 Subject: [PATCH 09/21] updated --- .github/workflows/semver.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index efa95ff..a7a1a2f 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -12,9 +12,8 @@ jobs: with: tagRegex: "v(.*)" - - name: print get-tag result - run: echo $GIT_TAG_NAME - run: echo "${{ steps.get-tag.outputs.tag }}" + - run: echo $GIT_TAG_NAME + - run: echo "${{ steps.get-tag.outputs.tag }}" # - name: Parse semver string # id: semver-parser From c32f30a9ddb5297e468cf23fb6612316d5032fea Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:32:10 +0200 Subject: [PATCH 10/21] updated --- .github/workflows/semver.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index a7a1a2f..154c415 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -15,12 +15,12 @@ jobs: - run: echo $GIT_TAG_NAME - run: echo "${{ steps.get-tag.outputs.tag }}" - # - name: Parse semver string - # id: semver-parser - # uses: booxmedialtd/parse-semver@v1 - # with: - # input_string: 'refs/tags/v1.0.4' - # version_extractor_regex: '\/v(.*)$' + - name: Parse semver string + id: semver-parser + uses: booxmedialtd/parse-semver@v1 + with: + input_string: 'refs/tags/v1.0.4' + version_extractor_regex: '\/v(.*)$' # - name: Use parsed semver # run: echo "v${{ steps.semver-parser.outputs.fullversion }}" From 9a9126b52b0e5fc9e77f52aca3e147095ab5da7d Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:37:01 +0200 Subject: [PATCH 11/21] updated --- .github/workflows/semver.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 154c415..69044cc 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -15,10 +15,10 @@ jobs: - run: echo $GIT_TAG_NAME - run: echo "${{ steps.get-tag.outputs.tag }}" - - name: Parse semver string - id: semver-parser - uses: booxmedialtd/parse-semver@v1 - with: + - name: Parse semver string + id: semver-parser + uses: booxmedialtd/ws-action-parse-semver@v1 + with: input_string: 'refs/tags/v1.0.4' version_extractor_regex: '\/v(.*)$' From 3179be150b2ab82d13858fad09f8510849247f70 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:38:24 +0200 Subject: [PATCH 12/21] updated --- .github/workflows/semver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 69044cc..a394104 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -19,7 +19,7 @@ jobs: id: semver-parser uses: booxmedialtd/ws-action-parse-semver@v1 with: - input_string: 'refs/tags/v1.0.4' + input_string: $GIT_TAG_NAME version_extractor_regex: '\/v(.*)$' # - name: Use parsed semver From 1d3510cce4cacfdad09dcbbd4ab9f459cdf9a88d Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:39:47 +0200 Subject: [PATCH 13/21] updated --- .github/workflows/semver.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index a394104..25ebbd0 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -20,7 +20,6 @@ jobs: uses: booxmedialtd/ws-action-parse-semver@v1 with: input_string: $GIT_TAG_NAME - version_extractor_regex: '\/v(.*)$' # - name: Use parsed semver # run: echo "v${{ steps.semver-parser.outputs.fullversion }}" From 185995bed460b195f5d63a9577e73174dd6f0758 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:42:36 +0200 Subject: [PATCH 14/21] updated --- .github/workflows/semver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 25ebbd0..5a589db 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -19,7 +19,7 @@ jobs: id: semver-parser uses: booxmedialtd/ws-action-parse-semver@v1 with: - input_string: $GIT_TAG_NAME + input_string: "${{ steps.get-tag.outputs.tag }}" # - name: Use parsed semver # run: echo "v${{ steps.semver-parser.outputs.fullversion }}" From 3e6bf8efbb82e59ee39118428b49b0a222fef860 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:45:34 +0200 Subject: [PATCH 15/21] updated --- .github/workflows/semver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 5a589db..36eb873 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -19,7 +19,7 @@ jobs: id: semver-parser uses: booxmedialtd/ws-action-parse-semver@v1 with: - input_string: "${{ steps.get-tag.outputs.tag }}" + input_string: "$GIT_TAG_NAME" # - name: Use parsed semver # run: echo "v${{ steps.semver-parser.outputs.fullversion }}" From 5ab470f1d731ecf2c1f6e8bd4fae78bcb97275e9 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:46:57 +0200 Subject: [PATCH 16/21] updated --- .github/workflows/semver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 36eb873..5a589db 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -19,7 +19,7 @@ jobs: id: semver-parser uses: booxmedialtd/ws-action-parse-semver@v1 with: - input_string: "$GIT_TAG_NAME" + input_string: "${{ steps.get-tag.outputs.tag }}" # - name: Use parsed semver # run: echo "v${{ steps.semver-parser.outputs.fullversion }}" From db91786dc85b9dd074be14a7fdf883c6e34f1acb Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:48:54 +0200 Subject: [PATCH 17/21] updated --- .github/workflows/dockerize-tag.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index e38989c..e3cebc5 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -12,12 +12,12 @@ jobs: with: tagRegex: "v(.*)" - - name: Parse semver string - id: semver-parser - uses: booxmedialtd/parse-semver@v1 - with: - input_string: 'refs/tags/v1.0.4' - version_extractor_regex: '\/v(.*)$' + - name: Parse semver string + id: semver-parser + uses: booxmedialtd/parse-semver@v1 + with: + input_string: "${{ steps.get-tag.outputs.tag }}" + # - name: Use parsed semver # run: | # echo "v${{ steps.semver-parser.outputs.fullversion }}" From 9946e1fb2c5515fdbfcfb4d6647c561e226a94e8 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:50:25 +0200 Subject: [PATCH 18/21] updated --- .github/workflows/dockerize-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index e3cebc5..fb67808 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -14,7 +14,7 @@ jobs: - name: Parse semver string id: semver-parser - uses: booxmedialtd/parse-semver@v1 + uses: booxmedialtd/ws-action-parse-semver@v1 with: input_string: "${{ steps.get-tag.outputs.tag }}" From edd89b2df088d8e630118595915f2f1e7c8154d6 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 11:53:22 +0200 Subject: [PATCH 19/21] udpated --- .github/workflows/dockerize-tag.yml | 66 ++++++++++++++--------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index fb67808..af62526 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -18,36 +18,36 @@ jobs: with: input_string: "${{ steps.get-tag.outputs.tag }}" - # - name: Use parsed semver - # run: | - # echo "v${{ steps.semver-parser.outputs.fullversion }}" - - # - name: Checkout Repository - # uses: actions/checkout@v2 - - # - name: Setup QEMU - # id: qemu - # uses: docker/setup-qemu-action@v1.0.1 - # with: - # platforms: linux/amd64,linux/arm/v7,linux/arm64 - - # - name: Set up Docker Buildx - # id: buildx - # uses: docker/setup-buildx-action@v1.0.4 - - # - name: Login to Docker Hub - # uses: docker/login-action@v1.8.0 - # with: - # username: ${{ secrets.DOCKER_HUB_USERNAME }} - # password: ${{ secrets.DOCKER_HUB_TOKEN }} - - # - name: Build and push - # id: docker_build - # uses: docker/build-push-action@v2 - # with: - # platforms: linux/amd64,linux/arm/v7,linux/arm64 - # push: true - # tags: networkboot/dhcpd:${{ steps.get-tag.outputs.tag }} - - # - name: Image digest - # run: echo ${{ steps.docker_build.outputs.digest }} + - name: Use parsed semver + run: | + echo "v${{ steps.semver-parser.outputs.fullversion }}" + + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup QEMU + id: qemu + uses: docker/setup-qemu-action@v1.0.1 + with: + platforms: linux/amd64,linux/arm/v7,linux/arm64 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1.0.4 + + - name: Login to Docker Hub + uses: docker/login-action@v1.8.0 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + platforms: linux/amd64,linux/arm/v7,linux/arm64 + push: true + tags: networkboot/dhcpd:${{ steps.semver-parser.outputs.fullversion }} + + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} From 35aa3199f10cf9a013ef9278fc7dc1b1055abb25 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 12:42:55 +0200 Subject: [PATCH 20/21] seems to be working now --- .github/workflows/dockerize-latest.yml | 4 +- .github/workflows/dockerize-tag.yml | 8 +--- .github/workflows/semver.yml | 55 -------------------------- 3 files changed, 4 insertions(+), 63 deletions(-) delete mode 100644 .github/workflows/semver.yml diff --git a/.github/workflows/dockerize-latest.yml b/.github/workflows/dockerize-latest.yml index 9cf1700..ee16a0d 100644 --- a/.github/workflows/dockerize-latest.yml +++ b/.github/workflows/dockerize-latest.yml @@ -28,7 +28,7 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Build and push + - name: Build and Push id: docker_build uses: docker/build-push-action@v2 with: @@ -36,5 +36,5 @@ jobs: push: true tags: networkboot/dhcpd:latest - - name: Image digest + - name: Print Image Digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index af62526..1aaa70b 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -12,16 +12,12 @@ jobs: with: tagRegex: "v(.*)" - - name: Parse semver string + - name: Parse Semver String id: semver-parser uses: booxmedialtd/ws-action-parse-semver@v1 with: input_string: "${{ steps.get-tag.outputs.tag }}" - - name: Use parsed semver - run: | - echo "v${{ steps.semver-parser.outputs.fullversion }}" - - name: Checkout Repository uses: actions/checkout@v2 @@ -49,5 +45,5 @@ jobs: push: true tags: networkboot/dhcpd:${{ steps.semver-parser.outputs.fullversion }} - - name: Image digest + - name: Print Image Digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml deleted file mode 100644 index 5a589db..0000000 --- a/.github/workflows/semver.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Semver Test Workflow -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+*' -jobs: - build-push-tag: - runs-on: ubuntu-latest - steps: - - uses: olegtarasov/get-tag@v2.1 - id: get-tag - with: - tagRegex: "v(.*)" - - - run: echo $GIT_TAG_NAME - - run: echo "${{ steps.get-tag.outputs.tag }}" - - - name: Parse semver string - id: semver-parser - uses: booxmedialtd/ws-action-parse-semver@v1 - with: - input_string: "${{ steps.get-tag.outputs.tag }}" - - # - name: Use parsed semver - # run: echo "v${{ steps.semver-parser.outputs.fullversion }}" - - # - name: Checkout Repository - # uses: actions/checkout@v2 - - # - name: Setup QEMU - # id: qemu - # uses: docker/setup-qemu-action@v1.0.1 - # with: - # platforms: linux/amd64,linux/arm/v7,linux/arm64 - - # - name: Set up Docker Buildx - # id: buildx - # uses: docker/setup-buildx-action@v1.0.4 - - # - name: Login to Docker Hub - # uses: docker/login-action@v1.8.0 - # with: - # username: ${{ secrets.DOCKER_HUB_USERNAME }} - # password: ${{ secrets.DOCKER_HUB_TOKEN }} - - # - name: Build and push - # id: docker_build - # uses: docker/build-push-action@v2 - # with: - # platforms: linux/amd64,linux/arm/v7,linux/arm64 - # push: true - # tags: networkboot/dhcpd:${{ steps.get-tag.outputs.tag }} - - # - name: Image digest - # run: echo ${{ steps.docker_build.outputs.digest }} From ac943251e19f5c33bc2080379814d923d4d1c6a3 Mon Sep 17 00:00:00 2001 From: Waqar Rashid Date: Tue, 26 Jul 2022 12:45:56 +0200 Subject: [PATCH 21/21] fixed cap --- .github/workflows/dockerize-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerize-tag.yml b/.github/workflows/dockerize-tag.yml index 1aaa70b..86be56e 100644 --- a/.github/workflows/dockerize-tag.yml +++ b/.github/workflows/dockerize-tag.yml @@ -37,7 +37,7 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Build and push + - name: Build and Push id: docker_build uses: docker/build-push-action@v2 with: