Compare commits
15 Commits
9129d0a22e
...
main
Author | SHA1 | Date | |
---|---|---|---|
bbb8f31de3 | |||
233c53ea3c | |||
ca59159e7b | |||
bb117c9c31 | |||
5fd3987e0e | |||
2120ace645 | |||
85a9cc945f | |||
9a3a486fd2 | |||
4c88dc465b | |||
dd6a253581 | |||
bd7a4dd15a | |||
3364d32e23 | |||
b37f312049 | |||
d92469d61d | |||
796bfb0ab5 |
@@ -1,3 +1,4 @@
|
||||
.gitea/
|
||||
.gitignore
|
||||
README.md
|
||||
docker-compose.yml
|
1
.gitea/remote-releases/latest.txt
Normal file
1
.gitea/remote-releases/latest.txt
Normal file
@@ -0,0 +1 @@
|
||||
v1.11.13
|
@@ -5,6 +5,10 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
paths-ignore:
|
||||
- ".gitea/workflows/**"
|
||||
schedule:
|
||||
- cron: "0 0 * * 0"
|
||||
|
||||
env:
|
||||
REGISTRY: gitea.taco.quest
|
||||
@@ -12,19 +16,22 @@ env:
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
runs-on: self-hosted
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
# - name: Prepare the container
|
||||
# run: curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
|
||||
- name: Prepare the container
|
||||
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
|
33
.gitea/workflows/monitor.yaml
Normal file
33
.gitea/workflows/monitor.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Get latest release version
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 1-6"
|
||||
|
||||
env:
|
||||
MONITOR_URL: "https://api.github.com/repos/pterodactyl/wings/releases/latest"
|
||||
|
||||
jobs:
|
||||
get-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.REPO_MOD_TOKEN }}
|
||||
- name: Prepare the container
|
||||
run: apt-get update && apt-get --no-install-recommends -y install jq
|
||||
- name: Fetch release version
|
||||
id: version-check
|
||||
run: |
|
||||
VERSION_TAG=$(curl -sL $MONITOR_URL | jq -r .tag_name)
|
||||
echo "$VERSION_TAG" > .gitea/remote-releases/latest.txt
|
||||
echo ::set-output name=version::"$VERSION_TAG"
|
||||
- name: Check for modified files
|
||||
id: git-check
|
||||
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
||||
- name: Commit latest release version
|
||||
if: steps.git-check.outputs.modified == 'true'
|
||||
run: |
|
||||
git config --global user.name 'Actions'
|
||||
git config --global user.email 'noreply@taco.quest'
|
||||
git commit -am "Trigger new release autobuild for ${{ steps.version-check.outputs.version }}"
|
||||
git push
|
@@ -11,14 +11,14 @@ ADD https://github.com/just-containers/s6-overlay/releases/latest/download/s6-ov
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/latest/download/s6-overlay-x86_64.tar.xz /tmp
|
||||
|
||||
# Download common tools
|
||||
ADD https://raw.githubusercontent.com/Gethec/ProjectTools/main/DockerUtilities/ContainerTools /usr/local/sbin/ContainerTools
|
||||
ADD https://gitea.taco.quest/Mindfang/ProjectTools/raw/branch/main/DockerUtilities/bash/ContainerTools /usr/local/sbin/ContainerTools
|
||||
|
||||
# Upgrade installed packages, install new ones
|
||||
RUN apk --no-cache add \
|
||||
bash \
|
||||
tzdata && \
|
||||
# Install S6-Overlay, enable execution of Wings
|
||||
chmod u+x /usr/bin/wings && \
|
||||
chmod u+x /usr/bin/wings /etc/s6-overlay/scripts/initializer && \
|
||||
tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz && \
|
||||
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && \
|
||||
# Container cleanup
|
||||
|
@@ -1 +1 @@
|
||||
/etc/s6-overlay/scripts/container-prep
|
||||
/etc/s6-overlay/scripts/initializer
|
Reference in New Issue
Block a user