From 856935a453dcb3248b929e30316dc22091fc52d1 Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 19 Apr 2025 09:37:36 +0200 Subject: [PATCH] build action --- .gitea/workflows/build_and_publish.yaml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/build_and_publish.yaml diff --git a/.gitea/workflows/build_and_publish.yaml b/.gitea/workflows/build_and_publish.yaml new file mode 100644 index 0000000..20ad88c --- /dev/null +++ b/.gitea/workflows/build_and_publish.yaml @@ -0,0 +1,30 @@ +--- +name: Container Publish + +on: + push: + tags: + - '*' + schedule: + - cron: "0 12 3 * *" + workflow_dispatch: + +jobs: + build-image: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - uses: actions/checkout@v4 + + - name: Login to registry + uses: docker/login-action@v3 + with: + registry: docker.asperti.com + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and publish + run: | + docker build -t docker.asperti.com/paspo/borgstore:latest --platform linux/amd64 -f Dockerfile . + docker push docker.asperti.com/paspo/borgstore:latest