workflows
This commit is contained in:
@@ -11,5 +11,5 @@
|
||||
|
||||
### New Image Submissions:
|
||||
|
||||
1. [ ] Have you added your image to the [Github workflows](https://github.com/pelican-eggs/yolks/tree/master/.github/workflows)?
|
||||
1. [ ] Have you added your image to the [Github workflows](https://git.kyle-speight.de/kyle-admin/tree/master/.github/workflows)?
|
||||
2. [ ] Have you updated the README list to contain your new image?
|
||||
45
.gitea/workflows/gitea-runner.yml
Normal file
45
.gitea/workflows/gitea-runner.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: build go
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 * * 1"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- go/**
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
push:
|
||||
name: "gitea-runner:${{ matrix.tag }}"
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
tag:
|
||||
- '1.0'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
buildkitd-flags: --debug
|
||||
- id: lower-repo
|
||||
name: Repository to lowercase
|
||||
run: |
|
||||
echo "repository=${GITHUB_REPOSITORY_OWNER@L}" >> $GITHUB_OUTPUT
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ steps.lower-repo.outputs.repository }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./go
|
||||
file: ./paid/gitea-runner/${{ matrix.tag }}/Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ steps.lower-repo.outputs.repository }}/gitea-runner:${{ matrix.tag }}
|
||||
${{ github.repository_owner == 'kylehost' && format('ghcr.io/kylehost/gitea-runner:{0}', matrix.tag) || '' }}
|
||||
@@ -13,7 +13,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
push:
|
||||
name: "yolks:wine_${{ matrix.tag }}"
|
||||
name: "wine:${{ matrix.tag }}"
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -47,5 +47,5 @@ jobs:
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ steps.lower-repo.outputs.repository }}/yolks:wine_${{ matrix.tag }}
|
||||
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/parkervcp/yolks:wine_{0}', matrix.tag) || '' }}
|
||||
ghcr.io/${{ steps.lower-repo.outputs.repository }}/wine"${{ matrix.tag }}
|
||||
${{ github.repository_owner == 'pelican-eggs' && format('ghcr.io/kyle-admin/wine:{0}', matrix.tag) || '' }}
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,4 +1,6 @@
|
||||
.DS_Store
|
||||
.idea
|
||||
*.idea
|
||||
|
||||
paid/
|
||||
eggs/
|
||||
yolks/
|
||||
|
||||
0
paid/gitea-runner/1.0/Dockerfile
Normal file
0
paid/gitea-runner/1.0/Dockerfile
Normal file
51
paid/gitea-runner/entrypoint.sh
Normal file
51
paid/gitea-runner/entrypoint.sh
Normal file
@@ -0,0 +1,51 @@
|
||||
#!/bin/ash
|
||||
|
||||
#
|
||||
# Copyright (c) 2026 Kyle Speight
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in all
|
||||
# copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
#
|
||||
|
||||
# Default the TZ environment variable to UTC.
|
||||
TZ=${TZ:-UTC}
|
||||
export TZ
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# Switch to the container's working directory
|
||||
cd /home/container || exit 1
|
||||
|
||||
# Print Go version
|
||||
printf "\033[1m\033[33mcontainer~ \033[0mgo version\n"
|
||||
go version
|
||||
|
||||
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||
# variable format of "${VARIABLE}" before evaluating the string and automatically
|
||||
# replacing the values.
|
||||
PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
|
||||
# Display the command we're running in the output, and then execute it with eval
|
||||
printf "\033[1m\033[33mcontainer~ \033[0m"
|
||||
echo "$PARSED"
|
||||
# shellcheck disable=SC2086
|
||||
eval "$PARSED"
|
||||
|
||||
# Print the banner
|
||||
Reference in New Issue
Block a user