Skip to content

Commit 5d8a821

Browse files
committed
fixing bad version tag on dockerhub
1 parent 455e6e9 commit 5d8a821

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/push-to-dockerhub.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Read latest WordPress version from wp-version.json
21+
- name: Put new versions into environment variables
2222
run: |
23-
echo "WP_VERSION=$(jq -r '.wordpress' wp-version.json)" >> $GITHUB_ENV
23+
echo "WP_VERSION=$(jq -r '.wordpress' wp-version.json)" >> $GITHUB_ENV
24+
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2425
2526
- name: Create GitHub release
2627
if: ${{ contains(github.ref, 'refs/tags/') }}
@@ -57,8 +58,8 @@ jobs:
5758
tags: |
5859
type=semver,pattern={{version}}
5960
type=semver,pattern={{major}}.{{minor}}
60-
type=raw,${{ env.WP_VERSION }}-{{version}}
61-
type=raw,${{ env.WP_VERSION }}
61+
type=raw,value=${{ env.WP_VERSION }}-${{ env.VERSION }}
62+
type=raw,value=${{ env.WP_VERSION }}
6263
type=sha
6364
6465
# https://github.com/docker/build-push-action

0 commit comments

Comments
 (0)