add: gitea build action (automatic updater)
Some checks failed
Build and publish release / build-docker (push) Failing after 4s
Some checks failed
Build and publish release / build-docker (push) Failing after 4s
This commit is contained in:
@ -14,7 +14,7 @@ jobs:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Maven
|
||||
- name: Update package
|
||||
run: |
|
||||
version=$(curl -s https://hub.spigotmc.org/versions/ | \
|
||||
grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.json' | \
|
||||
@ -31,9 +31,9 @@ jobs:
|
||||
|
||||
if [ "$(printf '%s\n' "$version" "$docker_version" | sort -V | tail -n 1)" = "$version" ] && [ "$version" != "$docker_version" ]; then
|
||||
echo "env1 ($version) > env2 ($docker_version)"
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.tulisiowice.top -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||
docker build --build-arg MINECRAFT_VERSION=$version -t git.tulisiowice.top/tulis/tulibuilder:v$version .
|
||||
docker push git.tulisiowice.top/tulis/tulibuilder:v$version
|
||||
else
|
||||
echo "env1 ($version) <= env2 ($docker_version)"
|
||||
fi
|
||||
- name: Download Java 21
|
||||
run: |
|
||||
echo $version
|
||||
echo "There's nothing to update!"
|
||||
fi
|
Reference in New Issue
Block a user