mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-27 06:18:06 +09:00
[ci] Don't build images in CI
It seems to not be possible to (safely) communicate with a remote builder instance.
This commit is contained in:
parent
85c1438252
commit
c3e685a925
@ -1,46 +0,0 @@
|
|||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'dev'
|
|
||||||
jobs:
|
|
||||||
test-build:
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: iceshrimp.dev/iceshrimp/ci-env:latest
|
|
||||||
options: --volume /opt/iceshrimp-cache/yarn:/iceshrimp-caches/yarn
|
|
||||||
services:
|
|
||||||
database:
|
|
||||||
image: postgres:15
|
|
||||||
env:
|
|
||||||
POSTGRES_PASSWORD: "test"
|
|
||||||
redis:
|
|
||||||
image: redis
|
|
||||||
steps:
|
|
||||||
- name: Clone repository
|
|
||||||
run: git clone https://iceshrimp.dev/iceshrimp/iceshrimp.git --branch=${{ github.ref_name }} --depth=1 .
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: |
|
|
||||||
cp -Tr /iceshrimp-caches/yarn .yarn
|
|
||||||
yarn --immutable
|
|
||||||
rm -rf /iceshrimp-caches/yarn/* && cp -Tr .yarn /iceshrimp-caches/yarn
|
|
||||||
- name: Build the shrimp
|
|
||||||
run: yarn build:debug
|
|
||||||
- name: Test the shrimp
|
|
||||||
run: |
|
|
||||||
cp .config/ci.yml .config/default.yml
|
|
||||||
yarn run migrate
|
|
||||||
build-and-push:
|
|
||||||
runs-on: docker
|
|
||||||
needs: test-build
|
|
||||||
container:
|
|
||||||
image: iceshrimp.dev/iceshrimp/ci-env:latest
|
|
||||||
options: --volume /home/zotan/.docker:/root/.docker
|
|
||||||
steps:
|
|
||||||
- name: Clone repository
|
|
||||||
run: git clone https://iceshrimp.dev/iceshrimp/iceshrimp.git --branch=${{ github.ref_name }} --depth=1 .
|
|
||||||
- name: Build docker image
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
docker login iceshrimp.dev -u ${{ github.actor }} -p ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
docker buildx build -t iceshrimp.dev/${GITHUB_REPOSITORY@L}:$GITHUB_REF_NAME --provenance=false --platform=linux/amd64,linux/arm64 --push --builder build-cluster .
|
|
||||||
docker buildx prune --keep-storage 20G --builder build-cluster
|
|
@ -1,7 +1,5 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
|
||||||
- 'dev'
|
|
||||||
jobs:
|
jobs:
|
||||||
test-build:
|
test-build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
Loading…
Reference in New Issue
Block a user