Skip to content

Commit 80f57d3

Browse files
committed
Fix version syntax
1 parent c351820 commit 80f57d3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ jobs:
6464
6565
- name: Get latest version number
6666
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
67+
run: echo "TRAC_VERSION=$(curl --silent https://pypi.org/pypi/trac/json | jq -r .info.version)" >> $GITHUB_OUTPUT
7068

7169
- name: Build and push unstable Docker image
7270
id: build-and-push-unstable
@@ -96,9 +94,9 @@ jobs:
9694
tags: |
9795
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:stable
9896
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
99-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{steps.get_version.outputs.version}}
97+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{steps.get_version.outputs.TRAC_VERSION}}
10098
build-args: |
101-
TRAC_INSTALL_URL=https://download.edgewall.org/trac/Trac-${{steps.get_version.outputs.version}}.tar.gz
99+
TRAC_INSTALL_URL=https://download.edgewall.org/trac/Trac-${{steps.get_version.outputs.TRAC_VERSION}}.tar.gz
102100
labels: ${{ steps.meta.outputs.labels }}
103101
cache-from: type=gha
104102
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)