Skip to content

Commit

Permalink
update autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
KagurazakaNyaa committed Nov 14, 2024
1 parent 12af63b commit 857cba0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -21,9 +18,16 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: kagurazakanyaa/palworld

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
push: true
tags: kagurazakanyaa/palworld:${{ env.RELEASE_VERSION }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.9"

services:
dedicated-server:
image: kagurazakanyaa/palworld:latest
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ echo "currentversion:$currentversion version:$version"
if [[ -z "${version}" ]]; then
exit
fi
if ! [[ $version =~ ^[0-9]+$ ]]; then
exit
fi
echo "$version" >currentversion
if [[ "$currentversion" == "$version" ]]; then
exit
Expand Down

0 comments on commit 857cba0

Please sign in to comment.