From db3445e124eb5fca730024ff9f2d0e09ca70ec11 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 12 Jan 2024 00:39:44 +0000 Subject: [PATCH] Add '.gitea/workflows/Build.yaml' --- .gitea/workflows/Build.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/Build.yaml diff --git a/.gitea/workflows/Build.yaml b/.gitea/workflows/Build.yaml new file mode 100644 index 0000000..2435ad7 --- /dev/null +++ b/.gitea/workflows/Build.yaml @@ -0,0 +1,37 @@ +name: build rgb-board +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: + push: + branches: + - "*" + paths-ignore: + - ".gitea/workflows/**" + +jobs: + build: + runs-on: ubuntu-latest + container: + image: registry.local/catthehacker-home:act-latest + volumes: + - /var/run/user/1000/docker.sock:/var/run/docker.sock + steps: + - uses: actions/checkout@v3 + - name: short-sha + id: short-sha + run: echo "short-sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + with: + driver-opts: | + image=registry.local/buildkit-wagnerca:stable-3-rootless + seccomp=unconfined + apparmor=unconfined + systempaths=unconfined + privileged=false + - run: docker buildx ls + - name: push rgbboard + uses: docker/build-push-action@master + with: + push: false + tags: registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }} + platforms: linux/arm64,linux/amd64 \ No newline at end of file