feature/tt/initial-implementation (#1)
Some checks failed
Gitea Docker Build Demo / Test (push) Successful in 2m24s
Gitea Docker Build Demo / Build_Image (push) Failing after 1m40s
Release / Test (release) Successful in 2m22s
Release / Build_Image (release) Failing after 44s

Reviewed-on: #1
Co-authored-by: Tobias Trabelsi <lerentis@uploadfilter24.eu>
Co-committed-by: Tobias Trabelsi <lerentis@uploadfilter24.eu>
This commit is contained in:
2025-10-06 09:21:57 +00:00
committed by lerentis
parent 33921aa992
commit e51594fdd7
17 changed files with 774 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
name: Gitea Docker Build Demo
run-name: Reference Branch Build 🚀
on:
push:
branches:
- main
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24.x'
- name: Test with the Go CLI
run: go test ./...
Build_Image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Cosign
uses: sigstore/cosign-installer@v3.10.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://buildkit-service.buildkit-service.svc:1234
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and Push the Docker Image
uses: docker/build-push-action@v6
id: build-and-push
with:
context: .
file: ./Dockerfile
push: false
tags: |
lerentis/canada-kaktus:{{ github.sha }}
- name: Sign the published Docker image
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign lerentis/canada-kaktus:${{ github.sha }}@${{ steps.build-and-push.outputs.digest }}

34
.gitea/workflows/pr.yaml Normal file
View File

@@ -0,0 +1,34 @@
name: PR Build
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [pull_request]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24.x'
- name: Test with the Go CLI
run: go test ./...
Build_Image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://buildkit-service.buildkit-service.svc:1234
- name: Build and Push the Docker Image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: false
tags: |
lerentis/canada-kaktus:latest

View File

@@ -0,0 +1,46 @@
name: Release
run-name: ${{ gitea.actor }} is Releasing a new version 🚀
on: [release]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24.x'
- name: Test with the Go CLI
run: go test ./...
Build_Image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Cosign
uses: sigstore/cosign-installer@v3.10.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://buildkit-service.buildkit-service.svc:1234
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and Push the Docker Image
uses: docker/build-push-action@v6
id: build-and-push
with:
context: .
file: ./Dockerfile
push: true
tags: |
lerentis/canada-kaktus:{{ github.event.release.tag_name }}
- name: Sign the published Docker image
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign lerentis/canada-kaktus:${{ github.event.release.tag_name }}@${{ steps.build-and-push.outputs.digest }}