-
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.
- Loading branch information
Showing
14 changed files
with
138 additions
and
82 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,60 @@ | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
RELEASE_START: 100 | ||
|
||
jobs: | ||
build: | ||
runs-on: [self-hosted, Linux, ARM64] | ||
container: | ||
image: ayufan/rock64-dockerfiles:bookworm | ||
options: --privileged | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Configure version | ||
run: echo "VERSION=$(cat VERSION).$(($RELEASE_START+$GITHUB_RUN_NUMBER))" >> $GITHUB_ENV | ||
- name: Cleanup old packages | ||
run: rm -f *.tar.xz | ||
- name: Install keyring | ||
run: make keyring | ||
- name: Build images | ||
run: make all | ||
- name: Release images | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
set -x | ||
export RELEASE_NAME="$VERSION" | ||
export RELEASE_TITLE="$VERSION" | ||
export DESCRIPTION="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" | ||
github-release release \ | ||
--tag "${RELEASE_NAME}" \ | ||
--name "${RELEASE_TITLE}" \ | ||
--user "${GITHUB_REPOSITORY%/*}" \ | ||
--repo "${GITHUB_REPOSITORY#*/}" \ | ||
--description "${DESCRIPTION}" \ | ||
--target "${GITHUB_SHA}" \ | ||
--draft | ||
sleep 3s # allow to update release | ||
for i in *.tar.xz; do | ||
github-release upload \ | ||
--tag "${RELEASE_NAME}" \ | ||
--name "$(basename "${i}")" \ | ||
--user "${GITHUB_REPOSITORY%/*}" \ | ||
--repo "${GITHUB_REPOSITORY#*/}" \ | ||
--file "${i}" | ||
done | ||
github-release edit \ | ||
--tag "${RELEASE_NAME}" \ | ||
--name "${RELEASE_TITLE}" \ | ||
--user "${GITHUB_REPOSITORY%/*}" \ | ||
--repo "${GITHUB_REPOSITORY#*/}" \ | ||
--description "${DESCRIPTION}" |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/tmp/ | ||
/*.tar | ||
/*.tar.xz | ||
/*.deb |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.8 |
Empty file.
5 changes: 5 additions & 0 deletions
5
configs/.broken/ubuntu-focal-minimal/archives/apt.list.binary
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,5 @@ | ||
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | ||
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | ||
|
||
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse | ||
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
Empty file.
5 changes: 5 additions & 0 deletions
5
configs/.broken/ubuntu-jimmy-minimal/archives/apt.list.binary
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,5 @@ | ||
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | ||
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | ||
|
||
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse | ||
deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse |
23 changes: 23 additions & 0 deletions
23
configs/.broken/ubuntu/package-lists/additional.list.chroot
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,23 @@ | ||
dosfstools | ||
curl | ||
xz-utils | ||
iw | ||
rfkill | ||
wpasupplicant | ||
openssh-server | ||
alsa-utils | ||
nano | ||
git | ||
build-essential | ||
vim | ||
jq | ||
ethtool | ||
zram-config | ||
wget | ||
ca-certificates | ||
software-properties-common | ||
sudo | ||
htop | ||
ifupdown | ||
bash | ||
eatmydata |
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,3 @@ | ||
ubuntu-minimal | ||
gnupg2 | ||
gpg-agent |
Empty file.
Empty file.
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,21 @@ | ||
#!/bin/bash | ||
|
||
CURDIR="$PWD" | ||
|
||
exec docker run \ | ||
--rm \ | ||
-it \ | ||
-e HOME -v "${HOME}:${HOME}" \ | ||
-e USER \ | ||
-u "$(id -u):$(id -g)" \ | ||
$(id -Gz | xargs -0 -n1 -I{} echo "--group-add={}") \ | ||
-v /etc/passwd:/etc/passwd:ro \ | ||
-v /dev:/dev \ | ||
-v "${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}" \ | ||
-e SSH_AUTH_SOCK \ | ||
--privileged \ | ||
-h rock64-build-env \ | ||
-v "${CURDIR}:${CURDIR}" \ | ||
-w "${CURDIR}" \ | ||
ayufan/rock64-dockerfiles:bookworm \ | ||
"$@" |