Skip to content

Commit c4977d2

Browse files
Troubleshooting embedding crossfire-server version into the docker image tags
1 parent dbb5258 commit c4977d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
id: crossfire_version
6868
run: |
6969
VERSION=$(docker run --rm basictheprogram/crossfire-server:latest dpkg-query -W -f='${Version}\n' crossfire-server)
70+
echo "Crossfire server version: $VERSION"
71+
echo "CROSSFIRE_VERSION=$VERSION" >> $GITHUB_ENV
7072
echo "CROSSFIRE_VERSION=$VERSION" >> $GITHUB_OUTPUT
7173
7274
- name: Build and Push
@@ -78,7 +80,7 @@ jobs:
7880
tags: |
7981
basictheprogram/crossfire-server:latest
8082
basictheprogram/crossfire-server:${{ github.sha }}
81-
basictheprogram/crossfire-server:${{ steps.crossfire.outputs.CROSSFIRE_VERSION }}
83+
basictheprogram/crossfire-server:${{ steps.crossfire_version.outputs.CROSSFIRE_VERSION }}
8284
cache-from: type=gha
8385
cache-to: type=gha,mode=max
8486

0 commit comments

Comments
 (0)