From fdab018fba713098cea1332a91dc2025c3f1676e Mon Sep 17 00:00:00 2001 From: Mark van Lent Date: Tue, 3 Feb 2026 10:29:46 +0100 Subject: [PATCH] Initial test --- .gitea/workflows/test.yaml | 21 +++++++++++++++++++++ .gitignore | 2 ++ Dockerfile | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 .gitea/workflows/test.yaml create mode 100644 .gitignore create mode 100644 Dockerfile diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..f1f0f50 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,21 @@ +name: Testing Gitea Actions +run-name: Building images in ${{ gitea.repository }} +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Docker Image + env: + BRANCH_NAME: ${{ github.ref_name }} + SHORT_HASH: ${{ github.sha }} + run: | + # Build the image with the commit hash tag + docker build -t test-image:${BRANCH_NAME}-${SHORT_HASH:0:5} . diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..437f8a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +**/.vscode diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..071f063 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM alpine:3.23 + +RUN apk add --no-cache curl