commit 7a0fda988933ce4a0eaef317b466dffd30dc94db Author: Lucas Petrino Date: Tue Nov 12 19:20:37 2024 +1300 Initial Commit diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..c4904d8 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:base"], + "dependencyDashboard": false +} + \ No newline at end of file diff --git a/Build.ps1 b/Build.ps1 new file mode 100644 index 0000000..a73f7d3 --- /dev/null +++ b/Build.ps1 @@ -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 + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3c2771b --- /dev/null +++ b/LICENSE @@ -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. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69f1f7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Gitea Action Images \ No newline at end of file diff --git a/base.txt b/base.txt new file mode 100644 index 0000000..b6d1634 --- /dev/null +++ b/base.txt @@ -0,0 +1,2 @@ +ubuntu-22.04 +ubuntu-latest \ No newline at end of file diff --git a/images/qt.dockerfile b/images/qt.dockerfile new file mode 100644 index 0000000..e1c809a --- /dev/null +++ b/images/qt.dockerfile @@ -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 \ No newline at end of file