From 1086827cf790f989200e6dbcb0a294868da613d0 Mon Sep 17 00:00:00 2001 From: Justine Pelletreau Date: Mon, 17 Jul 2023 15:52:01 +0200 Subject: [PATCH] Added actions --- .gitea/workflows/docker.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/docker.yml diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml new file mode 100644 index 0000000..6235c65 --- /dev/null +++ b/.gitea/workflows/docker.yml @@ -0,0 +1,41 @@ +name: build + +on: + push: + branches: + - "main" + +jobs: + build: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 # all history for all branches and tags + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: git.squi.fr + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v4 + env: + ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 + with: + context: . + file: ./Dockerfile + platforms: | + linux/amd64 + linux/arm64 + push: true + tags: gitea.squi.fr/${{ github.repository }}:latest +