Skip to content

Commit c802b49

Browse files
committed
ci(docker): fix app version
1 parent 7d93f15 commit c802b49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
images: ghcr.io/pterodactyl/panel
2727
tags: |
28+
latest=false
2829
type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.action == 'published' && github.event.release.prerelease == false }}
2930
type=ref,event=tag
3031
type=ref,event=branch
@@ -42,6 +43,11 @@ jobs:
4243
username: ${{ github.repository_owner }}
4344
password: ${{ secrets.REGISTRY_TOKEN }}
4445

46+
- name: Update app.php version
47+
if: "github.event_name == 'release' && github.event.action == 'published'"
48+
run: |
49+
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php
50+
4551
- name: Build and Push (tag)
4652
uses: docker/build-push-action@v3
4753
if: "github.event_name == 'release' && github.event.action == 'published'"

0 commit comments

Comments
 (0)