From 0aca50509c1e3a63d6623e630a3d5c04a6f41f6d Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Mon, 31 Jul 2023 10:51:22 +0200 Subject: [PATCH] Added gitea workflow --- .gitea/workflows/build.yaml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..64ce96f --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,40 @@ +name: Build & Publish +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Docker meta + id: meta + uses: https://github.com/docker/metadata-action@v4 + with: + images: git.flokaiser.com/h4ck3r-01/zephyr-configurator + tags: | + type=sha,enable=true,priority=100,prefix={{branch}}-,suffix=,format=short + type=raw,value=latest,enable={{is_default_branch}} + + - name: Get get-docker.sh + run: curl -fsSL https://get.docker.com -o get-docker.sh + + - name: Install docker + run: sh get-docker.sh + + - name: Login to Registry + uses: docker/login-action@v2 + with: + registry: git.flokaiser.com + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build and push + uses: docker/build-push-action@v4 + with: + platforms: linux/amd64 + push: true + tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file