From 6acaef0b33fa035c0f78f170ad77ee42925efc77 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 14 Oct 2025 21:59:47 +0200 Subject: [PATCH] Github Actions: Publish first docker image --- .gitea/workflows/build.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..7894141 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,32 @@ +name: Build & Publish to GHCR + +on: + push: + branches: + - main + workflow_dispatch: + +env: + GHCR_ORG: gansejunge + IMAGE_NAME: app-notifications-backend-push-notifications + IMAGE_PATH: ghcr.io/gansejunge/app-notifications-backend-push-notifications + OPS_ORG: notifier + OPS_REPO: ops-deployment + OPS_BRANCH_BASE: main + OPS_PATH: backend-push-notifications/deployment.yaml + GITEA_URL: https://git.gansejunge.com + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to GHCR + run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin + + - name: Build and Push Docker Image + run: | + docker build -t ghcr.io/gansejunge/${{ env.IMAGE_NAME }}:1 . + docker push ghcr.io/gansejunge/${{ env.IMAGE_NAME }}:1