Merge pull request #7 from Stealth1226/main

iso build workflow
main
Matt C 3 years ago committed by GitHub
commit 1f4a00bdc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,31 @@
name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }}
container:
image: archlinux:base-devel
options: --privileged
steps:
- name: Build
run: |
pacman -Syu --needed --noconfirm && pacman -S git --needed --noconfirm && git clone https://github.com/crystalux-project/iso/ && cd iso && bash deps.sh && bash build_iso.sh
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Upload
uses: ncipollo/release-action@v1
with:
artifacts: "iso/*.iso"
token: ${{ secrets.SECRET_TOKEN }}
tag: ${{ steps.date.outputs.date }}

@ -25,7 +25,7 @@ gparted
# Things we're hosting
arch-install-scripts
amethyst
ame
base
filesystem
crystal-cli-boot

@ -0,0 +1,4 @@
#! /bin/bash
pacman -Syu --needed --noconfirm
pacman -S archiso pacman-contrib --noconfirm

@ -316,9 +316,9 @@ _make_packages() {
fi
if [[ "${quiet}" = "y" ]]; then
pacstrap -C "${work_dir}/pacman.conf" -c -G -M -- "${airootfs_dir}" "${pkg_list[@]}" &> /dev/null
yes '' | pacstrap -C "${work_dir}/pacman.conf" -c -G -M -- "${airootfs_dir}" "${pkg_list[@]}" &> /dev/null
else
pacstrap -C "${work_dir}/pacman.conf" -c -G -M -- "${airootfs_dir}" "${pkg_list[@]}"
yes '' | pacstrap -C "${work_dir}/pacman.conf" -c -G -M -- "${airootfs_dir}" "${pkg_list[@]}"
fi
if [[ -n "${gpg_key}" ]]; then

Loading…
Cancel
Save