File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 16
16
if : |
17
17
!contains(github.event.head_commit.message, 'skip-ci')
18
18
steps :
19
+ - name : Validate git-tag input format
20
+ run : |
21
+ if [[ ! "${{ github.event.inputs.git-tag }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
22
+ echo "Error: Invalid git-tag format. Please use the format 'X.Y.Z' (e.g., '2.9.3')." >&2
23
+ exit 1
24
+ fi
19
25
- uses : actions/checkout@v2
20
26
with :
21
27
ref : main
@@ -44,16 +50,13 @@ jobs:
44
50
NODE_ENV : production
45
51
- name : Set up QEMU
46
52
uses : docker/setup-qemu-action@v1
47
-
48
53
- name : Set up Docker Buildx
49
54
uses : docker/setup-buildx-action@v1
50
-
51
55
- name : Login to DockerHub
52
56
uses : docker/login-action@v1
53
57
with :
54
58
username : ${{ secrets.DOCKERHUB_USERNAME }}
55
59
password : ${{ secrets.DOCKERHUB_TOKEN }}
56
-
57
60
- name : Build snapshot and push on merge
58
61
id : docker_build_release
59
62
uses : docker/build-push-action@v2
62
65
file : ./Dockerfile-dev
63
66
push : true
64
67
tags : greenstand/${{ github.event.repository.name }}-dev:${{ steps.package-version.outputs.current-version }}
65
-
66
68
- id : export_bumped_version
67
69
run : |
68
70
export BUMPED_VERSION="${{ steps.package-version.outputs.current-version }}"
You can’t perform that action at this time.
0 commit comments