ci: fix version replace and Docker version

This commit is contained in:
Matthew Penner 2021-11-15 11:19:30 -07:00
parent 66eb993afa
commit aa0d5d46c5
No known key found for this signature in database
GPG Key ID: BAB67850901908A8
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ jobs:
- name: Get Build Information
id: build_info
run: |
echo "::set-output name=version_tag::${GITHUB_REF/refs\/tags\//}"
echo "::set-output name=version_tag::${GITHUB_REF/refs\/tags\/v/}"
echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
- name: Release Production Build
uses: docker/build-push-action@v2

View File

@ -45,7 +45,7 @@ jobs:
git config --local user.name "Pterodactyl CI"
git checkout -b $BRANCH
git push -u origin $BRANCH
sed -i "s/ Version = \".*\"/ Version = \"${REF:11}\"/" system/const.go
sed -i "s/var Version = \".*\"/var Version = \"1.0.0\"/" system/const.go
git add system/const.go
git commit -m "bump version for release"
git push