Skip to content

Commit

Permalink
feat(wordpress): add latest tag (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen authored Sep 10, 2024
1 parent 0205b09 commit f22a0b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
run: |
result=$(curl -s https://api.wordpress.org/core/version-check/1.7/)
versions=$(echo "$result" | jq -rc '[.offers[].version] | unique | reverse')
latest=$(echo "$result" | jq -rc '[.offers[].version][0]')
echo "matrix=$versions" >> $GITHUB_OUTPUT
echo "latest=$latest" >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-22.04
Expand All @@ -56,6 +58,7 @@ jobs:
cache-mode: 'min'
context: images/wordpress
image: myparcelnl/wordpress
latest: ${{ matrix.wp }} == ${{needs.prepare-wp.outputs.latest}} && ${{ matrix.php }} == '8.2'
suffix: ${{ matrix.wp }}-php${{ matrix.php }}
build-args: |
PHP_VERSION=${{ matrix.php }}
Expand Down

0 comments on commit f22a0b1

Please sign in to comment.