From b7d4db6ae885d84a1f83d504bf2c363650f86546 Mon Sep 17 00:00:00 2001 From: aayalew Date: Fri, 10 Jul 2026 17:10:42 +0300 Subject: [PATCH] registry check --- .gitea/workflows/build.yaml | 35 +++++++++++++++++++++++++++++++++++ Dockerfile | 3 +++ index.html | 11 +++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .gitea/workflows/build.yaml create mode 100644 Dockerfile create mode 100644 index.html diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..af85cd6 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,35 @@ +name: build-and-push + +on: + push: + branches: [main, master] + +env: + # Hostname only (no scheme) — Gitea container registry on this demo stack. + REGISTRY: gitea-dev.alertaware.com + IMAGE: demo + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set image tag + id: meta + run: echo "tag=${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT" + + - name: Login to Gitea container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE }}:${{ steps.meta.outputs.tag }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d608acc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM public.ecr.aws/docker/library/nginx:1.27-alpine +COPY index.html /usr/share/nginx/html/index.html +EXPOSE 80 diff --git a/index.html b/index.html new file mode 100644 index 0000000..88ffce5 --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + Gitea demo + + +

Gitea Actions demo

+

Built and pushed via Gitea Actions on the AlertAware dev cluster.

+ +