From 0e14cca2eb54e21df96e5a84d5805c2cab125418 Mon Sep 17 00:00:00 2001 From: Rose Date: Wed, 24 Jul 2024 01:59:24 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20working=20ci=20builds=20for=20do?= =?UTF-8?q?cker=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/devel.yml | 45 +++++++++++------------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/.forgejo/workflows/devel.yml b/.forgejo/workflows/devel.yml index 3c15767..194763b 100644 --- a/.forgejo/workflows/devel.yml +++ b/.forgejo/workflows/devel.yml @@ -4,55 +4,36 @@ on: branches: [devel] jobs: build: - runs-on: docker - container: - image: node:21-alpine + runs-on: ubuntu-latest 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: Checkout + uses: actions/checkout@v4 - 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}} + username: ${{github.actor}} password: ${{secrets.OAUTH_TOKEN}} - name: build dispatch uses: https://code.forgejo.org/docker/build-push-action@v6 with: - context: ./apps/dispatch + context: . + file: ./apps/dispatch/Dockerfile push: true - tags: ${{github.server_url}}/rose/datamine/dispatch:devel + tags: git.thornbush.dev/rose/datamine/dispatch:devel - name: build ingest uses: https://code.forgejo.org/docker/build-push-action@v6 with: - context: ./apps/ingest + context: . + file: ./apps/ingest/Dockerfile push: true - tags: ${{github.server_url}}/rose/datamine/ingest:devel + tags: git.thornbush.dev/rose/datamine/ingest:devel - name: build dispatch uses: https://code.forgejo.org/docker/build-push-action@v6 with: - context: ./apps/bot + context: . + file: ./apps/bot/Dockerfile push: true - tags: ${{github.server_url}}/rose/datamine/bot:devel + tags: git.thornbush.dev/rose/datamine/bot:devel