datamine/.forgejo/workflows/devel.yml
Rose 0527af6054
Some checks failed
Build OCI Images / build (push) Failing after 3m6s
try gha cache again :3
2024-07-24 04:00:09 -04:00

65 lines
1.9 KiB
YAML

name: Build OCI Images
on:
push:
branches: [devel]
jobs:
build:
runs-on: docker
container:
image: node:21-alpine
steps:
- name: setup workspace
run: |
apk add --no-cache libc6-compat git zstd docker docker-cli
apk update
yarn set version canary
yarn config set nodeLinker node-modules
- name: checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: cache
uses: https://code.forgejo.org/actions/cache@v4
with:
path: |
.yarn
node_modules
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
${{ runner.os }}-
- name: yarn install
run: yarn install
- 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
username: ${{github.actor}}
password: ${{secrets.OAUTH_TOKEN}}
- name: build dispatch
uses: https://code.forgejo.org/docker/build-push-action@v6
with:
context: .
file: ./apps/dispatch/Dockerfile
push: true
tags: git.thornbush.dev/rose/datamine/dispatch:devel
cache-from: type=gha
cache-to: type=gha,mode=max
- name: build ingest
uses: https://code.forgejo.org/docker/build-push-action@v6
with:
context: .
file: ./apps/ingest/Dockerfile
push: true
tags: git.thornbush.dev/rose/datamine/ingest:devel
cache-from: type=gha
cache-to: type=gha,mode=max
- name: build dispatch
uses: https://code.forgejo.org/docker/build-push-action@v6
with:
context: .
file: ./apps/bot/Dockerfile
push: true
tags: git.thornbush.dev/rose/datamine/bot:devel
cache-from: type=gha
cache-to: type=gha,mode=max