From 0852989191af457189721ceefd11bbc60efdf553 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Wed, 8 Nov 2023 22:45:05 +0100 Subject: [PATCH] :construction_worker: add workflow for building docker image --- .gitea/workflows/ci.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..49c0ccd --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,35 @@ +name: ci + +on: + push: + branches: + - "main" + +jobs: + docker: + runs-on: ubuntu-latest + services: + registry: + image: registry:2 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: gitea.pimux.de + username: ${{ secrets.MY_GITEA_USERNAME }} + password: ${{ secrets.MY_GITEA_TOKEN }} + - name: Build and push to local registry + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: gitea.pimux.de/finn/reminder:latest + - name: Inspect + run: | + docker buildx imagetools inspect gitea.pimux.de/finn/reminder:latest