datamine/.forgejo/workflows/devel.yml
Rose 5a4c130a19
Some checks failed
Build OCI Images / build (push) Failing after 10s
💚 okay so just give permission to the socket instead
2024-07-24 02:49:43 -04:00

54 lines
1.7 KiB
YAML

name: Build OCI Images
on:
push:
branches: [devel]
jobs:
build:
runs-on: docker
container:
image: node:21-alpine
steps:
- name: setup job
run: |
apk add --no-cache libc6-compat git zstd docker docker-cli openrc
apk update
addgroup $(whoami) docker
sudo chown $(whoami) /var/run/docker.sock
yarn set version canary
yarn config set nodeLinker node-modules
- name: checkout
uses: https://code.forgejo.org/actions/checkout@v4
- 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: 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: ./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