pika-drivers/.github/workflows/release-nestv3.yml

52 lines
1.0 KiB
YAML
Raw Normal View History

2024-07-24 00:34:32 +03:00
name: PikaOS Package Build & Release (amd64-v3)
2023-06-30 00:12:57 +03:00
on:
2024-07-24 04:21:44 +03:00
push:
branches:
- main
paths:
- '.github/release-nest-v3'
2023-06-30 00:12:57 +03:00
jobs:
build:
2024-07-24 04:21:44 +03:00
runs-on: ubuntu-latest
2023-06-30 00:12:57 +03:00
container:
2024-07-24 00:34:32 +03:00
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
2023-06-30 00:12:57 +03:00
volumes:
- /proc:/proc
options: --privileged -it
steps:
2024-12-05 17:33:52 +03:00
- name: Runner Origin Check
run: |
if [ "${{ secrets.RUNNER_ORIGIN }}" = "github" ]; then
exit 1
else
true
fi
env:
RUNNER_ORIGIN: ${{ secrets.RUNNER_ORIGIN }}
2023-06-30 00:12:57 +03:00
- uses: actions/checkout@v3
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
2024-07-25 21:12:39 +01:00
key: ${{ secrets.SSH_KEY }}
2023-06-30 00:12:57 +03:00
name: id_rsa
2024-07-25 21:12:39 +01:00
known_hosts: ${{ secrets.KNOWN_HOSTS }}
2023-06-30 00:12:57 +03:00
if_key_exists: replace
2024-07-24 00:34:32 +03:00
- name: Update APT Cache
run: apt-get update -y
2024-07-24 14:00:56 +03:00
- name: Set Build Config
run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh
2023-06-30 00:12:57 +03:00
- name: Build Package
2024-07-24 14:00:56 +03:00
run: ./main.sh
2023-06-30 00:12:57 +03:00
- name: Release Package
run: ./release.sh