forked from nikhiljha/pp-fedora-sdsetup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI tests and CD pipeline (nikhiljha#117)
Add Github Actions workflow Reduce interactivity in a CI environment Change to systemd-nspawn from chroot Clean up some magic strings as variables Remove firefox (Cisco GPG repo problems) Unmount everything and xz resulting image Co-authored-by: Nikhil Jha <[email protected]>
- Loading branch information
1 parent
94b2ad6
commit 50fdc82
Showing
13 changed files
with
132 additions
and
34 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
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,65 @@ | ||
name: Run build | ||
|
||
"on": | ||
push: | ||
paths-ignored: | ||
- README.md | ||
- COPYING | ||
pull_request: | ||
release: | ||
types: | ||
- published | ||
- prereleased | ||
workflow_dispatch: # Allows manually triggering | ||
|
||
env: | ||
PP_IMAGE: /dev/loop10 | ||
FED_IMAGE: /dev/loop11 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
- name: Makes extra disk space | ||
uses: greg-hellings/make-space@v1 | ||
- name: Install necessary tools | ||
run: | | ||
sudo apt update | ||
sudo apt install -yy systemd-container qemu-user-static u-boot-tools btrfs-progs dosfstools xz-utils sssd | ||
sudo service sssd start | ||
- name: Download files | ||
run: | | ||
set -ex -o pipefail | ||
./download-files.sh | ||
- name: Execute build | ||
run: | | ||
set -ex -o pipefail | ||
sudo -E ./all.sh | ||
# Compress image | ||
sudo xz -T 0 fedora.img | ||
- name: Store fedora.img.xz as an artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: image | ||
path: fedora.img.xz | ||
if-no-files-found: error | ||
|
||
release: | ||
needs: | ||
- build # Can only run after the build has created the artifact | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' | ||
steps: | ||
- name: Download fedora.img.xz | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: image | ||
- name: Upload files to release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: fedora.img.xz | ||
allowUpdates: true | ||
name: ${{ github.event.name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
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
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
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