From 61fea30ada06037b0b337502ce3399bec5c3612e Mon Sep 17 00:00:00 2001 From: Guillaume Lapierre Date: Tue, 26 Mar 2024 14:49:36 +0100 Subject: [PATCH] Publish when tagging --- .gitea/workflows/publish.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..0ad5f86 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,35 @@ +# +# Build docker image +# + +name: Build +run-name: ${{ gitea.actor }} running CI in the pipeline 🚀 +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: cth-ubuntu-latest + if: gitea.ref == 'refs/heads/main' + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Set up docker buildx + uses: docker/setup-buildx-action@v3 + with: + driver-opts: | + network=giteanet + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and (do not) push + uses: docker/build-push-action@v5 + env: + ACTIONS_RUNTIME_TOKEN: '' + with: + push: true + tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }} \ No newline at end of file