Skip to content

Commit 4a5f3d4

Browse files
committed
build: Get previous release tag
1 parent 97b4dd4 commit 4a5f3d4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,23 @@ jobs:
9494
repository: ${{ env.IMAGE_NAME }}
9595
short-description: ClassicPress Docker Image
9696

97+
- if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
98+
name: Get previous release tag
99+
id: previous-tag
100+
env:
101+
GH_TOKEN: ${{ github.token }}
102+
run: |
103+
tag_name=$(gh release ls -L 1 --json tagName | jq -r '.[0].tagName')
104+
echo "value=${tag_name}" >> $GITHUB_OUTPUT
105+
97106
- if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
98107
name: Create Changelog
99108
id: changelog
100109
uses: requarks/changelog-action@v1
101110
with:
102111
token: ${{ github.token }}
103-
tag: ${{ github.ref_name }}
112+
fromTag: ${{ steps.previous-tag.outputs.value }}
113+
toTag: ${{ github.ref_name }}
104114
writeToFile: false
105115
excludeTypes: build,docs,style
106116
excludeScopes: deploy,version

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Tagging convention is: `CLASIC_PRESS_VERSION-rRELEASE`
1919
## Basic Information
2020

2121
* The image is based on Alpine 3.22 and php 8.4
22+
* Multi-plarform support: AMD64 (x86-64) and ARM64 (aarch64)
2223
* Some code taken from [`TrafeX/docker-php-nginx:2.5.0`](https://github.com/TrafeX/docker-php-nginx) which I highly recommend! Unfortunatelly I coudln't use it (inherit) because Docker has no mechanism to "unexpose" port and remove health check
2324
* Thanks to Alpine + Nginx + php-fpm, the image is using only around ~40MB of RAM
2425
* Has enabled all required and recommended php extensions for WordPress

0 commit comments

Comments
 (0)