Attempting to use custom action #27
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -18,7 +18,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
bluebuild:
|
bluebuild:
|
||||||
name: Build Custom Image
|
name: Build Custom Image
|
||||||
runs-on: ubuntu-22.04
|
runs-on: rocky-minimal
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@@ -33,27 +33,6 @@ jobs:
|
|||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
|
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
|
||||||
|
|
||||||
- name: Get Ubuntu version
|
|
||||||
id: ubuntu_version
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
VERSION=$(awk -F= '/^VERSION_ID=/ {gsub(/"/, "", $2); print $2}' /etc/os-release)
|
|
||||||
echo "Ubuntu version is $VERSION"
|
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# that is compatible with BlueBuild
|
|
||||||
- name: Setup Podman
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
# from https://askubuntu.com/questions/1414446/whats-the-recommended-way-of-installing-podman-4-in-ubuntu-22-04
|
|
||||||
ubuntu_version='22.04'
|
|
||||||
key_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key"
|
|
||||||
sources_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}"
|
|
||||||
echo "deb $sources_url/ /" | sudo tee /etc/apt/sources.list.d/devel-kubic-libcontainers-unstable.list
|
|
||||||
curl -fsSL $key_url | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y podman
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@v3.9.0
|
- uses: sigstore/cosign-installer@v3.9.0
|
||||||
with:
|
with:
|
||||||
install-dir: /usr/bin
|
install-dir: /usr/bin
|
||||||
|
Reference in New Issue
Block a user