From db6f534f778c2beec2724d1ffd28559b15f2f0a8 Mon Sep 17 00:00:00 2001 From: Rose Date: Wed, 24 Jul 2024 01:53:53 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Added=20forgejo/gha/act=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/devel.yml | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .forgejo/workflows/devel.yml diff --git a/.forgejo/workflows/devel.yml b/.forgejo/workflows/devel.yml new file mode 100644 index 0000000..3c15767 --- /dev/null +++ b/.forgejo/workflows/devel.yml @@ -0,0 +1,58 @@ +name: Build OCI Images +on: + push: + branches: [devel] +jobs: + build: + runs-on: docker + container: + image: node:21-alpine + steps: + - name: setup node + run: | + apk add --no-cache libc6-compat + apk update + yarn set version canary + yarn config set nodeLinker node-modules + - name: checkout + uses: https://code.forgejo.org/actions/checkout@v4 + with: + fetch-depth: 2 + - name: cache turbo build + uses: https://code.forgejo.org/actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + ${{ runner.os }}- + - name: yarn install + run: yarn install + - name: Docker QEMU + uses: https://code.forgejo.org/docker/setup-qemu-action@v3 + - name: Docker Buildx + uses: https://code.forgejo.org/docker/setup-buildx-action@v3 + - name: Login to Docker Registry + uses: https://code.forgejo.org/docker/login-action@v3 + with: + registry: git.thornbush.dev + user: ${{github.actor}} + password: ${{secrets.OAUTH_TOKEN}} + - name: build dispatch + uses: https://code.forgejo.org/docker/build-push-action@v6 + with: + context: ./apps/dispatch + push: true + tags: ${{github.server_url}}/rose/datamine/dispatch:devel + - name: build ingest + uses: https://code.forgejo.org/docker/build-push-action@v6 + with: + context: ./apps/ingest + push: true + tags: ${{github.server_url}}/rose/datamine/ingest:devel + - name: build dispatch + uses: https://code.forgejo.org/docker/build-push-action@v6 + with: + context: ./apps/bot + push: true + tags: ${{github.server_url}}/rose/datamine/bot:devel