diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..d4f3c63 --- /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