From a4b52cdfac1c53a95ffb7e6f01ede2bcef4587b4 Mon Sep 17 00:00:00 2001 From: u80864958 Date: Mon, 5 May 2025 10:52:53 +0200 Subject: [PATCH] add action --- .gitea/workflows/release.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..78773f1 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: ["main"] + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + pull_request: + branches: ["main"] + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: https://github.com/actions/checkout@v4 + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."git.schreifuchs.ch"] + http = true + insecure = true + + - name: login + run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch + - name: Build and push Docker image + uses: https://github.com/docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: "git.schreifuchs.ch/schreifuchs/ng-blog:${{ github.ref_name }}"