From 33f5904197548beee4e5060e26ae9d4bb706db55 Mon Sep 17 00:00:00 2001 From: froejdh_e Date: Fri, 11 Apr 2025 08:19:55 +0200 Subject: [PATCH] added actions --- .gitea/workflows/build_push.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/build_push.yml diff --git a/.gitea/workflows/build_push.yml b/.gitea/workflows/build_push.yml new file mode 100644 index 0000000..00a70fd --- /dev/null +++ b/.gitea/workflows/build_push.yml @@ -0,0 +1,28 @@ +name: Build and Publish Docker Image + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest-intranet + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: gitea.psi.ch + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: gitea.psi.ch/${{ github.repository }}:latest \ No newline at end of file