Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit 7828c65

Browse files
author
Waqar Rashid
committed
Added semver test file
1 parent c58a7fe commit 7828c65

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/semver.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build and Push Tag
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+*'
6+
jobs:
7+
build-push-tag:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: olegtarasov/[email protected]
11+
id: get-tag
12+
with:
13+
tagRegex: "v(.*)"
14+
15+
- name: print get-tag result
16+
run: echo $GIT_TAG_NAME
17+
18+
# - name: Parse semver string
19+
# id: semver-parser
20+
# uses: booxmedialtd/parse-semver@v1
21+
# with:
22+
# input_string: 'refs/tags/v1.0.4'
23+
# version_extractor_regex: '\/v(.*)$'
24+
25+
# - name: Use parsed semver
26+
# run: echo "v${{ steps.semver-parser.outputs.fullversion }}"
27+
28+
# - name: Checkout Repository
29+
# uses: actions/checkout@v2
30+
31+
# - name: Setup QEMU
32+
# id: qemu
33+
# uses: docker/[email protected]
34+
# with:
35+
# platforms: linux/amd64,linux/arm/v7,linux/arm64
36+
37+
# - name: Set up Docker Buildx
38+
# id: buildx
39+
# uses: docker/[email protected]
40+
41+
# - name: Login to Docker Hub
42+
# uses: docker/[email protected]
43+
# with:
44+
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
45+
# password: ${{ secrets.DOCKER_HUB_TOKEN }}
46+
47+
# - name: Build and push
48+
# id: docker_build
49+
# uses: docker/build-push-action@v2
50+
# with:
51+
# platforms: linux/amd64,linux/arm/v7,linux/arm64
52+
# push: true
53+
# tags: networkboot/dhcpd:${{ steps.get-tag.outputs.tag }}
54+
55+
# - name: Image digest
56+
# run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)