From 0e51472973554a1f05cb49730dccb2a2ce0d12b7 Mon Sep 17 00:00:00 2001 From: Job79 Date: Sat, 28 Sep 2024 18:00:00 +0200 Subject: [PATCH] ci: add container build --- .gitea/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..bb00746 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,28 @@ +name: Container build +on: [ push ] + +jobs: + container-build: + runs-on: ubuntu-latest + if: gitea.ref == 'refs/heads/main' + steps: + - name: Clone repo + uses: actions/checkout@v4 + - name: Set up BuildX + uses: docker/setup-buildx-action@v2 + with: + endpoint: 'unix:///var/run/docker.sock' + - name: Login to Registry + uses: docker/login-action@v3 + with: + registry: git.plabble.org + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./Containerfile + push: true + tags: | + git.plabble.org/job79/dev:latest