diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index ff3c1aadd..97c85d962 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -25,6 +25,7 @@ jobs: with: images: ghcr.io/pterodactyl/panel tags: | + latest=false type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.action == 'published' && github.event.release.prerelease == false }} type=ref,event=tag type=ref,event=branch @@ -42,6 +43,11 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.REGISTRY_TOKEN }} + - name: Update app.php version + if: "github.event_name == 'release' && github.event.action == 'published'" + run: | + sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php + - name: Build and Push (tag) uses: docker/build-push-action@v3 if: "github.event_name == 'release' && github.event.action == 'published'"