From f76ab2c2b1b237b050669546a034f02123e662bf Mon Sep 17 00:00:00 2001 From: Justine Pelletreau Date: Mon, 17 Jul 2023 17:37:46 +0200 Subject: [PATCH] Added actions --- .gitea/workflows/docker.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 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..ede5d41 --- /dev/null +++ b/.gitea/workflows/docker.yml @@ -0,0 +1,43 @@ +name: build + +on: + push: + branches: + - "main" + - "master" + +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: gitea.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/justine/sqtasks:latest + +