From 8756ab1a4e57121f927a88a163b374b2092a9fdb Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Sat, 23 Nov 2024 18:44:01 +0100 Subject: [PATCH] Try to add gitea action --- .gitea/workflows/pipeline.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/pipeline.yaml diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml new file mode 100644 index 0000000..e82ac67 --- /dev/null +++ b/.gitea/workflows/pipeline.yaml @@ -0,0 +1,31 @@ +name: pipeline +on: + push: + branches: + - "main" + +permissions: + packages: write + +jobs: + build-and-push-image: + runs-on: debian-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Log in to container registry + uses: docker/login-action@v3 + with: + registry: https://git.vhaudiquet.fr + username: ${{ github.actor }} + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build and push docker image + uses: docker/build-push-action@v6 + with: + context: ./frontend + push: true + tags: | + git.vhaudiquet.fr/vhaudiquet/lolstats-frontend:latest + git.vhaudiquet.fr/vhaudiquet/lolstats-frontend:${{ github.sha }}