Skip to content

Commit ca4be12

Browse files
authored
Merge pull request #61 from wiseflat/dev/mgarcia/optimize-github-worflow-1
ci(workflow): set v0.0.x version in Docker publish workflow
2 parents 95590eb + 794fef0 commit ca4be12

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Set version (SemVer)
5353
id: set_version
54-
run: echo "VERSION=v${{ github.run_number }}" >> $GITHUB_ENV
54+
run: echo "VERSION=v0.0.${{ github.run_number }}" >> $GITHUB_ENV
5555

5656
- name: Extract Docker UI metadata
5757
id: meta-ui
@@ -107,7 +107,7 @@ jobs:
107107

108108
- name: Set version (SemVer)
109109
id: set_version
110-
run: echo "VERSION=v${{ github.run_number }}" >> $GITHUB_ENV
110+
run: echo "VERSION=v0.0.${{ github.run_number }}" >> $GITHUB_ENV
111111

112112
- name: Extract Docker Ansible metadata
113113
id: meta-ansible
@@ -139,6 +139,9 @@ jobs:
139139
runs-on: ubuntu-latest
140140
if: github.ref == 'refs/heads/main'
141141
steps:
142+
- name: Set version (SemVer) for release
143+
run: echo "VERSION=v0.0.${{ github.run_number }}" >> $GITHUB_ENV
144+
142145
- name: Create GitHub Release
143146
uses: actions/create-release@v1
144147
env:

0 commit comments

Comments
 (0)