This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
Fix shellcheck warnings #48
Workflow file for this run
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
name: Repo | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
debian-repo: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [ amd64, arm64 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Build the repo | |
run: ./build ostreeRepo-${{ matrix.arch }} | |
working-directory: ./debian | |
- name: Rename build artifact | |
run: mv ostreeRepo-${{ matrix.arch }}-trixie*.ostreeRepo.tar.gz ostree-debian-repo-${{ matrix.arch }}.tar.gz | |
working-directory: ./debian/.build | |
- name: Upload debian ${{ matrix.arch }} repo | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ostree-debian-repo-${{ matrix.arch }} | |
path: debian/.build/ostree-debian-repo-${{ matrix.arch }}.tar.gz | |
retention-days: 2 | |
gardenlinux-repo: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [ amd64, arm64 ] | |
platform: [ kvm, metal ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Configure Build Variant | |
run: echo ${{ matrix.platform }} > features/ostreeRepo/BUILD_VARIANT | |
working-directory: ./gardenlinux | |
- name: Build the repo | |
run: ./build ${{ matrix.platform }}_dev_curl-ostreeRepo-${{ matrix.arch }} | |
working-directory: ./gardenlinux | |
- name: Rename build artifact | |
run: mv ${{ matrix.platform }}*${{ matrix.arch }}*.ostreeRepo.tar.gz ostree-gardenlinux-repo-${{ matrix.platform }}-${{ matrix.arch }}.tar.gz | |
working-directory: ./gardenlinux/.build | |
- name: Upload gardenlinux ${{ matrix.platform }} ${{ matrix.arch }} repo | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ostree-gardenlinux-repo-${{ matrix.platform }}-${{ matrix.arch }} | |
path: gardenlinux/.build/ostree-gardenlinux-repo-${{ matrix.platform }}-${{ matrix.arch }}.tar.gz | |
retention-days: 2 |