Moving to Forgejo
This commit is contained in:
parent
863da42c5a
commit
677f9df6f3
4 changed files with 50 additions and 0 deletions
18
.forgejo/workflows/build-image-sway.yaml
Normal file
18
.forgejo/workflows/build-image-sway.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: TileOS Sway SO Builder
|
||||||
|
on: [workflow_call]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: iso-builder
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Build image with sway
|
||||||
|
run: |
|
||||||
|
eval $(ssh-agent -s)
|
||||||
|
mkdir /root/.ssh
|
||||||
|
echo "{{ secrets.STORAGE_SSH_KEY }} > ./id_rsa
|
||||||
|
chmod 400 ~/.ssh/id_rsa
|
||||||
|
rm -rf ${PWD}/output/*
|
||||||
|
mkdir ${PWD}/output
|
||||||
|
docker run --privileged --rm -i -v ${PWD}/output:/builder/builds -v /proc:/proc builder:latest ./build --desktop sway --release testing
|
||||||
|
ssh -o StrictHostKeyChecking=no ${{ secrets.STORAGE_USER}}@${{ secrets.STORAGE_HOST ]} -p ${{ secrets.STORAGE_PORT}} -i ~/.ssh/id_rsa rm -rf /media/iso/tile-os/testing/sway/*
|
||||||
|
scp -o StrictHostKeyChecking=no -o Port=${{ secrets.STORAGE_PORT }} -o IdentityFile=/builder/id_rsa -p -B ${PWD}/output/amd64/* ${{ secrets.STORAGE_USER }}@${{ secrets.STORAGE_HOST }}:/media/iso/tile-os/testing/sway/
|
16
.forgejo/workflows/prebuild.yaml
Normal file
16
.forgejo/workflows/prebuild.yaml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
on: [workflow_call]
|
||||||
|
jobs:
|
||||||
|
prebuild:
|
||||||
|
runs-on: iso-builder
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
-
|
||||||
|
name: Build builder image
|
||||||
|
run: |
|
||||||
|
eval $(ssh-agent -s)
|
||||||
|
echo "{{ secrets.STORAGE_SSH_KEY }} > ./id_rsa
|
||||||
|
docker build --no-cache -f Dockerfile-builder -t builder:latest .
|
||||||
|
|
||||||
|
|
15
.forgejo/workflows/wrapper.yaml
Normal file
15
.forgejo/workflows/wrapper.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
name: TileOS ISO Builder Wrapper
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- ci
|
||||||
|
jobs:
|
||||||
|
prebuild:
|
||||||
|
uses: ./.forjejo/workflows/prebuild.yaml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
build-sway:
|
||||||
|
uses: ./.forjejo/workflows/build-image-sway.yaml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
tmp/*
|
tmp/*
|
||||||
builds/*
|
builds/*
|
||||||
artifacts/*
|
artifacts/*
|
||||||
|
.gitlab-ci.yml
|
Loading…
Add table
Reference in a new issue