Initial Commit

This commit is contained in:
2024-11-12 19:20:37 +13:00
commit 7a0fda9889
6 changed files with 71 additions and 0 deletions

6
.github/renovate.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"dependencyDashboard": false
}

25
Build.ps1 Normal file
View File

@@ -0,0 +1,25 @@
$dockerfilesDirectory = "images"
$baseFilePath = "base.txt"
$baseImageLines = Get-Content -Path $baseFilePath
foreach ($file in Get-ChildItem -Path $dockerfilesDirectory -File) {
$dockerfilePath = $file.FullName
$dockerfileName = $file.Name
Write-Host "Processing Dockerfile: $dockerfilePath"
foreach ($baseImage in $baseImageLines) {
$name = $dockerfileName.SubString(0, $dockerfileName.IndexOf("."))
$buildArgs = "--build-arg BASE_IMAGE=$baseImage"
$dockerImageName = "git.119.224.65.18.sslip.io/siteorg/action-image-" + $name + ":$($baseImage.Replace('/', '_').Replace(':', '_'))"
Write-Host "Building image $dockerImageName"
$buildCommand = "docker build -f $dockerfilePath $buildArgs -t $dockerImageName ."
Invoke-Expression $buildCommand
Write-Host "Publishing image: $dockerImageName"
$pushCommand = "docker push $dockerImageName"
Invoke-Expression $pushCommand
}
}

30
LICENSE Normal file
View File

@@ -0,0 +1,30 @@
CSSUDII Free On-Platform Software License
=========================================
Version 1.0, November 2024
Copyright 2024, CSSUDII. All rights reserved.
You are granted a non-transferable license to use the software solely on the CSSUDII Gitea server platform.
The software is provided to you for any purpose, including commercial applications provided you meet the following conditions.
You may not:
* Redistribute the software, in any shape, form, or medium,
including but not limited to distribution via download, physical media, or otherwise.
* Use the software outside of the CSSUDII Gitea server environment.
The software may only be operated, accessed, and used on the CSSUDII Gitea server,
and may not be moved, copied, or run on any other server or platform.
Conditions:
* This software is intended to be used a gitea action, this is the only allowed use of this 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.

1
README.md Normal file
View File

@@ -0,0 +1 @@
# Gitea Action Images

2
base.txt Normal file
View File

@@ -0,0 +1,2 @@
ubuntu-22.04
ubuntu-latest

7
images/qt.dockerfile Normal file
View File

@@ -0,0 +1,7 @@
ARG BASE_IMAGE="ubuntu-22.04"
FROM gitea/runner-images:${BASE_IMAGE}
RUN add-apt-repository universe \
&& apt install -y \
&& apt install qt6-base-dev libgl1-mesa-dev -y