Attempting to use custom action #27

Closed
eriq12 wants to merge 16 commits from custom-action into main
2 changed files with 289 additions and 13 deletions
Showing only changes of commit 55760dd849 - Show all commits

View File

@@ -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