-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from MusicDin/feat/mint
Add Linux Mint
- Loading branch information
Showing
25 changed files
with
92 additions
and
47 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
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
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,87 @@ | ||
name: Build Linux Mint Images | ||
|
||
on: | ||
schedule: | ||
# Run at 00:00 UTC daily. | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
publish: | ||
type: boolean | ||
default: false | ||
description: Publish built image | ||
|
||
jobs: | ||
mint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
release: | ||
- una | ||
- virginia | ||
variant: | ||
- default | ||
- cloud | ||
architecture: | ||
- amd64 | ||
env: | ||
type: "container" | ||
distro: "${{ github.job }}" | ||
target: "${HOME}/build" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/image-setup | ||
|
||
- name: Build image | ||
run: | | ||
TIMEOUT=1800 | ||
YAML="${{ github.workspace }}/images/${{ env.distro }}.yaml" | ||
ARCH="${{ matrix.architecture }}" | ||
TYPE="${{ env.type }}" | ||
RELEASE="${{ matrix.release}}" | ||
SUITE="jammy" | ||
if [ "${RELEASE}" = "una" ]; then | ||
SUITE=focal | ||
fi | ||
./bin/build-distro "${YAML}" "${ARCH}" "${TYPE}" "${TIMEOUT}" "${{ env.target }}" \ | ||
-o image.architecture="${ARCH}" \ | ||
-o image.release=${{ matrix.release }} \ | ||
-o image.variant=${{ matrix.variant }} \ | ||
-o source.suite="${SUITE}" | ||
- name: Print build artifacts | ||
run: ls -lah "${{ env.target }}" | ||
|
||
- name: Test container image | ||
uses: ./.github/actions/image-test | ||
if: contains(env.type, 'container') | ||
with: | ||
type: container | ||
target: ${{ env.target }} | ||
distro: ${{ env.distro }} | ||
release: ${{ matrix.release }} | ||
variant: ${{ matrix.variant }} | ||
|
||
- name: Test VM image | ||
uses: ./.github/actions/image-test | ||
if: contains(env.type, 'vm') | ||
with: | ||
type: vm | ||
target: ${{ env.target }} | ||
distro: ${{ env.distro }} | ||
release: ${{ matrix.release }} | ||
variant: ${{ matrix.variant }} | ||
|
||
- name: Upload image | ||
uses: ./.github/actions/image-upload | ||
if: github.event_name == 'schedule' || inputs.publish == true | ||
with: | ||
target: ${{ env.target }} | ||
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}" | ||
ssh_private_key: "${{ secrets.LXD_INFRA_IMAGES_KEY }}" |
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