-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Containerisation of Continuous Integration (#27)
* Changes to scripts for github actions * rootfs ci without pushing image to registry * fixed job name error * fixed dockerfile path error * chnages to dockerfile context * dockerfile location change * solving issue with github workspace * trying to solving issue with github workspace * trying to solving issue with dockerfile again * removing lines from dockerfile * specifying branches * adding .dockerignore file * changing context path * changing build push syntax * move dockerfile out of rootfs * add dockerfiles * remove copying step * artifact location * artifact location fixed * artifact location fixed this time * artifact location attempt * docker load loacation fixed * artifact path change * artifact path change to inside github workspace * artifact path change to inside github workspace * Remove interactive container option * chnages to docker run command * changes to docker run command to make it work * removing modes for the volumes * add platform to make command * adding config file to remote * changing zip artifact location * changing build location * cleaning up and adding more comments * Adding more repos to github workspace * Add release of container to ghcr * chnage repo name to have no capitals * changing image name * fixing name of tar file in release job * Adding tags for ghcr * changing tags for image * making sure docs pull image correctly * fixing ghcr login for docs ci * using sudo to move html directory * Cleaning up the docs yml * moving html directory * changing username * replacing link to i2c tar file * changing rclone command * path changes for scripts * changing rclone installation * rclone patch * rclone patch script change * install fuse * remove rclone from container * changing name of platform * Replace paths in CONFIG.example * Replace link to dropbear tar file * Simpify Docs publishing * Implement uploading container with Tagged version * Updated conf.py for new version of Sphinx * Correct image name in metadata * Checkout sources for rebuild and release of container * Remove outputs argument from releasing image * Correct container name in Metadata * Flag pre-release tags Co-authored-by: Tizayi Zirereza <[email protected]> Co-authored-by: root <[email protected]>
- Loading branch information
1 parent
9b8179b
commit 07ce3e4
Showing
11 changed files
with
318 additions
and
118 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,3 @@ | ||
#Ignore the git and cache folders | ||
.git | ||
.cache |
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,19 +1,17 @@ | ||
#!/bin/bash | ||
# Installs and extracts a GNU toolchain based on the systems architecture | ||
|
||
PLATFORM=$1 | ||
# Put in own dir | ||
# Installs and extracts a GNU toolchains for both systems architectures | ||
# ARM GNU Toolchains | ||
TOOLCHAIN_ZYNQ=https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz | ||
TOOLCHAIN_ZYNQMP=https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu.tar.xz | ||
|
||
# ARM GNU Toolchain | ||
# Determine which toolchain to use | ||
if [ "$PLATFORM" == "zynq" ]; then | ||
TOOLCHAIN=https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz | ||
elif [ "$PLATFORM" == "zynqmp" ]; then | ||
TOOLCHAIN=https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu.tar.xz | ||
else >&2 echo "Error: Argument $PLATFORM must be either zynq or zynqmp" | ||
exit 1 | ||
fi | ||
# Download and extract both toolchains | ||
curl -o toolchain-zynq.tar.xz -L $TOOLCHAIN_ZYNQ | ||
curl -o toolchain-zynqmp.tar.xz -L $TOOLCHAIN_ZYNQMP | ||
|
||
# Download and extract toolchain | ||
curl -o toolchain.tar.xz -L $TOOLCHAIN | ||
tar -xf toolchain.tar.xz | ||
rm toolchain.tar.xz | ||
tar -xf toolchain-zynq.tar.xz | ||
tar -xf toolchain-zynqmp.tar.xz | ||
|
||
rm toolchain-zynq.tar.xz | ||
rm toolchain-zynqmp.tar.xz |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/bash | ||
# Generates and populates CONFIG file for rootfs repo. | ||
|
||
cat >> rootfs/CONFIG.local << 'EOL' | ||
cat >> /rootfs/CONFIG.local << 'EOL' | ||
TARGET = minimal | ||
# This is the location where source and build files will be placed. | ||
ROOTFS_ROOT = $(GITHUB_WORKSPACE)/build | ||
ROOTFS_ROOT = /build | ||
# This is where all of the source tar files will be found. | ||
TAR_DIRS = $(GITHUB_WORKSPACE)/tar-files | ||
TAR_DIRS = /tar-files | ||
EOL |
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,25 @@ | ||
#!/bin/bash | ||
# Installation of go & temporary rclone patch applied until symlinks issue using rclone mount is resolved (see below): | ||
# https://github.com/rclone/rclone/issues/2975 | ||
|
||
#Install go | ||
curl -OL https://golang.org/dl/go1.17.linux-amd64.tar.gz | ||
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.linux-amd64.tar.gz | ||
export PATH=$PATH:/usr/local/go/bin | ||
go version | ||
|
||
#Install rclone patch | ||
git clone https://github.com/PandABlocks/rclone.git | ||
cd rclone | ||
git checkout traack_symlinks | ||
make | ||
./rclone version | ||
cd home/runner/go/bin/ | ||
cp rclone /usr/bin/rclone | ||
chown root:root /usr/bin/rclone | ||
chmod 755 /usr/bin/rclone | ||
mkdir -p /usr/local/share/man/man1 | ||
cp rclone /usr/local/share/man/man1/ | ||
mandb | ||
rclone 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
Oops, something went wrong.