Skip to content

Commit 028921b

Browse files
authored
Merge pull request pterodactyl#2985 from pterodactyl/fix/docker-build-version
Properly add the version to Docker builds
2 parents 8df44b3 + d964e1d commit 028921b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
registry: ghcr.io
2626
username: ${{ github.repository_owner }}
2727
password: ${{ secrets.REGISTRY_TOKEN }}
28+
- name: Bump Version
29+
if: "!contains(github.ref, 'develop')"
30+
env:
31+
REF: ${{ github.ref }}
32+
run: |
33+
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php
2834
- name: Release Production Build
2935
uses: docker/build-push-action@v2
3036
if: "!contains(github.ref, 'develop')"

0 commit comments

Comments
 (0)