run-upstream-build/.github/workflows/v3.yml

40 lines
984 B
YAML
Raw Normal View History

2024-07-27 20:53:14 +02:00
name: PikaOS Upstream Package Build & Release (amd64-v3)
2024-07-27 21:02:20 +02:00
2024-07-27 20:12:37 +02:00
on:
push:
branches:
- main
paths:
2024-07-27 20:48:07 +02:00
- 'pika-build-config/v3.sh'
2024-07-27 20:12:37 +02:00
jobs:
build:
2024-07-31 21:36:44 +02:00
runs-on: upstream-package
2024-07-27 20:12:37 +02:00
container:
2024-07-27 20:52:03 +02:00
image: ghcr.io/pikaos-linux/pika-base-debian-container:latest
2024-07-27 20:12:37 +02:00
volumes:
- /proc:/proc
2024-08-07 19:53:02 +02:00
options: --privileged -it --cap-add=sys_admin --cap-add mknod --device=/dev/fuse --security-opt seccomp=unconfined --security-opt label=disable
2024-07-27 20:12:37 +02:00
steps:
- uses: actions/checkout@v3
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Set Build Config
2024-07-27 20:48:07 +02:00
run: cp -vf ./pika-build-config/v3setup.sh ./pika-build-config.sh
2024-07-27 20:12:37 +02:00
- name: Build Package
run: ./main.sh
- name: Release Package
2024-07-27 20:48:07 +02:00
run: ./release.sh