Skip to content

Commit 231176b

Browse files
committed
Build latest trac version
1 parent 66e6a33 commit 231176b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ jobs:
6262
tags: |
6363
type=schedule,prefix=trunk-,pattern={{date 'YYYYMMDD'}}
6464
65+
- name: Get latest version number
66+
id: get_version
67+
run:
68+
- echo -n "::set-output name=version::"
69+
- curl --silent https://pypi.python.org/pypi/Trac/json | jq -r .info.version
70+
6571
- name: Build and push unstable Docker image
6672
id: build-and-push-unstable
6773
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
@@ -90,6 +96,9 @@ jobs:
9096
tags: |
9197
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:stable
9298
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
99+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{steps.get_version.outputs.version}}
100+
build-args: |
101+
TRAC_INSTALL_URL=https://download.edgewall.org/trac/Trac-${{steps.get_version.outputs.version}}.tar.gz
93102
labels: ${{ steps.meta.outputs.labels }}
94103
cache-from: type=gha
95104
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)