Skip to content

Commit

Permalink
chore(iso): added KS and ISO generation (#99)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
bigpod98 and github-actions[bot] authored Apr 2, 2023
1 parent 057d9b8 commit 36ac6a8
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 10 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,59 @@ name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
tag: ${{ steps.release-please.outputs.tag_name }}
upload_url: ${{ steps.release-please.outputs.upload_url }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release-please
with:
release-type: node
package-name: release-please-action

build-iso:
name: Generate and Release ISOs
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.releases_created
container: fedora:latest
strategy:
matrix:
major_version: [ 38 ]
image_name: [silverblue-main, kinoite-main, vauxite-main, sericea-main, lxqt-main, mate-main]
steps:
- uses: actions/checkout@v3
- name: generate KS files
shell: bash
run: |
tee -a ${{ matrix.image_name }}.ks << END
ostreecontainer --url="ghcr.io/ublue-os/${{ matrix.image_name }}:${{ matrix.major_version }}" --no-signature-verification
url --url="https://download.fedoraproject.org/pub/fedora/linux/development/38/Everything/x86_64/os/"
%post --logfile=/root/ks-post.log --erroronfail
%end
END
- name: Generate ISO
uses: ublue-os/isogenerator@main
id: isogenerator
with:
image-name: ${{ matrix.image_name }}-${{ matrix.major_version }}
installer-repo: development
installer-major-version: ${{ matrix.major_version }}
kickstart-file-path: ${{ matrix.image_name }}.ks
- name: install github CLI
run: |
sudo dnf install 'dnf-command(config-manager)' -y
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh -y
- name: Upload ISO
env:
GITHUB_TOKEN: ${{ github.token }}
run:
gh release upload ${{ needs.release-please.outputs.tag }} ./${{ steps.isogenerator.outputs.iso-path }} -R bluefin/main
- name: Upload SHA256SUM
env:
GITHUB_TOKEN: ${{ github.token }}
run:
gh release upload ${{ needs.release-please.outputs.tag }} ./${{ steps.isogenerator.outputs.sha256sum-path }} -R bluefin/main
12 changes: 2 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# Changelog

## 1.0.0 (2023-02-04)


### Features

* Add code-of-conduct ([#39](https://github.com/ublue-os/base/issues/39)) ([aab8078](https://github.com/ublue-os/base/commit/aab8078cfdc7d2354e057a0ca4771d3a53d2df4c))
* add conventional commit linting and release notes generator ([b7820b4](https://github.com/ublue-os/base/commit/b7820b4ba312ca939d0dc977ed9f6a08d135324b))
* tag PR builds independently from matrix.version, latest, and stable ([b022183](https://github.com/ublue-os/base/commit/b02218386235e6d40a11a48b5b1171e9acf8d1eb))
## [1.0.5](https://github.com/bigpod98/main/compare/v1.0.4...v1.0.5) (2023-04-02)


### Bug Fixes

* Don't generate an image when README.md is updated ([#36](https://github.com/ublue-os/base/issues/36)) ([8c170cf](https://github.com/ublue-os/base/commit/8c170cfe89dd306eec0940f4dc50ed245c94bc2b))
* only generate date tag for main branch ([94aa5bb](https://github.com/ublue-os/base/commit/94aa5bb8df2aac0985d4c9422b19b0c03a3f25b0))
* ISO name addition ([441d3a8](https://github.com/bigpod98/main/commit/441d3a8e6dce6c789667e90c0ff9d9018ca9064a))

0 comments on commit 36ac6a8

Please sign in to comment.