From a25359fc0d30ce7839d80531798d2963edcfc759 Mon Sep 17 00:00:00 2001 From: ebner Date: Tue, 25 Mar 2025 11:37:47 +0100 Subject: [PATCH] add workflow --- .gitea/workflows/build_push.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..c4130fb --- /dev/null +++ b/.gitea/workflows/build_push.yml @@ -0,0 +1,32 @@ +name: Build and Publish Docker Image + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Show environment variables + run: | + set + + - 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