From 41140df95076a1feab0a42089fea1cc209982432 Mon Sep 17 00:00:00 2001 From: nathanael-h <7300309+nathanael-h@users.noreply.github.com> Date: Mon, 18 Jul 2022 17:59:54 +0200 Subject: [PATCH 1/5] add github action wip... --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4569ddb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: Build yunohost rpi image + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "yunohost-buster" branch + push: + branches: [ "yunohost-bullseye" ] + pull_request: + branches: [ "yunohost-bullseye" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-20.04 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + apt update + apt-get -y install coreutils quilt parted qemu-user-static debootstrap zerofree zip dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc qemu-utils kpartx gpg pigz + curl -fsSL https://get.docker.com -o get-docker.sh + sh get-docker.sh + ./build-docker.sh + From b0c0fd7e82cd91bc7e90056a2c9401a1974a03ac Mon Sep 17 00:00:00 2001 From: nathanael-h <7300309+nathanael-h@users.noreply.github.com> Date: Mon, 18 Jul 2022 18:03:45 +0200 Subject: [PATCH 2/5] chg: github actions use sudo --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4569ddb..3c76b5b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,9 +28,9 @@ jobs: # Runs a set of commands using the runners shell - name: Run a multi-line script run: | - apt update - apt-get -y install coreutils quilt parted qemu-user-static debootstrap zerofree zip dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc qemu-utils kpartx gpg pigz - curl -fsSL https://get.docker.com -o get-docker.sh - sh get-docker.sh - ./build-docker.sh + sudo apt update + sudo apt-get -y install coreutils quilt parted qemu-user-static debootstrap zerofree zip dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc qemu-utils kpartx gpg pigz + sudo curl -fsSL https://get.docker.com -o get-docker.sh + sudo sh ./get-docker.sh + sudo ./build-docker.sh From c1fb6dd148a1fc5c0d349fd2cb9f561dc6f34543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20HANNEBERT?= Date: Mon, 18 Jul 2022 19:31:21 +0200 Subject: [PATCH 3/5] chg: ci add upload deploy dir as artifact --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c76b5b..1cbceb7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,4 +33,7 @@ jobs: sudo curl -fsSL https://get.docker.com -o get-docker.sh sudo sh ./get-docker.sh sudo ./build-docker.sh - + - uses: actions/upload-artifact@v3 + with: + name: Upload deploy directory as artifact + path: deploy/ From 17edfe2dc3dd4afbf2e1272da0f9dc1ad6f31f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20HANNEBERT?= Date: Mon, 18 Jul 2022 21:55:38 +0200 Subject: [PATCH 4/5] chg: stage3 add echos to de debug ci failure --- stage3/00-install-yunohost/00-run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stage3/00-install-yunohost/00-run.sh b/stage3/00-install-yunohost/00-run.sh index 493e9b6..ce2d5e9 100755 --- a/stage3/00-install-yunohost/00-run.sh +++ b/stage3/00-install-yunohost/00-run.sh @@ -77,4 +77,8 @@ do sleep 1 done sleep 5 -done \ No newline at end of file +done +echo "last lsof..." +lsof +echo "last ps -ef --forest..." +ps -ef --forest \ No newline at end of file From 73ca540dc7fa33f9ad58ed727a825726eb32463f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20HANNEBERT?= Date: Mon, 18 Jul 2022 22:33:31 +0200 Subject: [PATCH 5/5] chg: ci bump runner to Ubuntu 22.04 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1cbceb7..51f7ccb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 # Steps represent a sequence of tasks that will be executed as part of the job steps: