-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build process to hold at NodeJS 18.x stream, and create manife…
…st file (#14) * Create Build Only.yml * Update Build Only.yml * Update Build Only.yml * Update Build Only.yml * Update Build Only.yml * Update preinst * Update build process to hold at NodeJS 18.x stream, and create manifest file Update build process to hold at NodeJS 18.x stream, and create manifest file
- Loading branch information
1 parent
ff357a8
commit e705e63
Showing
4 changed files
with
166 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
name: "Build Only" | ||
run-name: Build Release ${{ github.event.inputs.version }} from ${{ github.ref_name }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version / Tag (x.x.x):' | ||
required: true | ||
release_type: | ||
type: choice | ||
description: Release Type | ||
options: | ||
- stable | ||
- test | ||
|
||
jobs: | ||
release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.inputs.version }} | ||
release_name: ${{ github.event.inputs.version }} | ||
prerelease: false | ||
|
||
build: | ||
name: Build Packages | ||
needs: release | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: [ | ||
debian-x86_64, | ||
debian-arm32v6, | ||
debian-arm64v8, | ||
] | ||
include: | ||
- name: debian-x86_64 | ||
os: ubuntu-latest | ||
BASE_IMAGE: library/debian:bullseye | ||
QEMU_ARCH: x86_64 | ||
|
||
- name: debian-arm32v6 | ||
os: ubuntu-latest | ||
BASE_IMAGE: balenalib/raspberry-pi-debian:bullseye | ||
QEMU_ARCH: arm | ||
|
||
- name: debian-arm64v8 | ||
os: ubuntu-latest | ||
BASE_IMAGE: arm64v8/debian:bullseye | ||
QEMU_ARCH: aarch64 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Linux - Setup Dependencies | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get --yes --no-install-recommends install binfmt-support qemu-user-static | ||
docker run --rm --privileged multiarch/qemu-user-static:register --reset | ||
- name: Linux - Build Docker Image | ||
if: runner.os == 'Linux' | ||
run: | | ||
docker build -f build/Dockerfile --build-arg BASE_IMAGE=${{ matrix.BASE_IMAGE }} --build-arg QEMU_ARCH=${{ matrix.QEMU_ARCH }} -t package-build . | ||
- name: Linux - Build Package | ||
if: runner.os == 'Linux' | ||
run: | | ||
docker run --rm -v $(pwd):/repo -e PKG_RELEASE_TYPE="${{ github.event.inputs.release_type }}" -e PKG_RELEASE_VERSION="${{ github.event.inputs.version }}" package-build | ||
- name: List files | ||
run: | | ||
find . -print | ||
- name: Set variables | ||
run: | | ||
echo BODY_FILE="$(ls *.manifest)" >> $GITHUB_ENV | ||
- name: update release | ||
uses: tubone24/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_NAME: ${{ github.event.inputs.version }} | ||
with: | ||
is_append_body: "Contents of ${{ matrix.QEMU_ARCH }} Package." | ||
|
||
- name: update release | ||
uses: tubone24/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_NAME: ${{ github.event.inputs.version }} | ||
with: | ||
body_path: ${{ env.BODY_FILE }} | ||
|
||
- uses: AButler/[email protected] | ||
with: | ||
files: '*.deb;*.manifest' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: ${{ github.event.inputs.version }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: "Build and Deploy Packages" | ||
name: "Build Release and Publish to DEB Repo" | ||
run-name: Build Release ${{ github.event.inputs.version }} from ${{ github.ref_name }} | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -19,7 +20,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Release | ||
id: create_release | ||
|
@@ -36,6 +37,7 @@ jobs: | |
needs: release | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: [ | ||
debian-x86_64, | ||
|
@@ -78,9 +80,29 @@ jobs: | |
run: | | ||
docker run --rm -v $(pwd):/repo -e PKG_RELEASE_TYPE="${{ github.event.inputs.release_type }}" -e PKG_RELEASE_VERSION="${{ github.event.inputs.version }}" package-build | ||
- uses: AButler/[email protected] | ||
- name: Set variables | ||
run: | | ||
echo BODY_FILE="$(ls *.manifest)" >> $GITHUB_ENV | ||
- name: update release | ||
uses: tubone24/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_NAME: ${{ github.event.inputs.version }} | ||
with: | ||
is_append_body: "Contents of ${{ matrix.QEMU_ARCH }} Package." | ||
|
||
- name: update release | ||
uses: tubone24/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_NAME: ${{ github.event.inputs.version }} | ||
with: | ||
body_path: ${{ env.BODY_FILE }} | ||
|
||
- uses: AButler/[email protected] | ||
with: | ||
files: '*.deb' | ||
files: '*.deb;*.manifest' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: ${{ github.event.inputs.version }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters