Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 25 additions & 12 deletions .github/workflows/release-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ permissions:
contents: read

jobs:
build-artifacts:
name: Build Artifacts
get-version:
name: Determine Version
runs-on: ubuntu-latest
if: github.repository == 'podman-container-tools/podman'
outputs:
Expand All @@ -69,6 +69,18 @@ jobs:
else
echo "version_display=$VERSION-$sha" >> "$GITHUB_OUTPUT"
fi

build-artifacts:
name: Build Artifacts
runs-on: ubuntu-latest
if: github.repository == 'podman-container-tools/podman'
needs: [get-version]
steps:
- name: Checkout Version
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.version }}
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
Expand All @@ -83,13 +95,14 @@ jobs:
- name: Upload to Actions as artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: release-artifacts
name: release-artifacts-${{ needs.get-version.outputs.version_display }}
path: release/*

mac-pkg:
name: Build MacOS pkginstaller
runs-on: macos-latest
if: github.repository == 'podman-container-tools/podman'
needs: [get-version]
env:
APPLICATION_CERTIFICATE: ${{ secrets.MACOS_APPLICATION_CERT }}
CODESIGN_IDENTITY: ${{ secrets.MACOS_APPLICATION_IDENTITY }}
Expand Down Expand Up @@ -133,7 +146,7 @@ jobs:
- name: Artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: mac-installers
name: mac-installers-${{ needs.get-version.outputs.version_display }}
path: |
contrib/pkginstaller/out/podman-installer-macos-*.pkg

Expand All @@ -143,17 +156,17 @@ jobs:
matrix:
arch: [amd64, arm64]
runs-on: windows-latest
needs: [build-artifacts]
needs: [get-version, build-artifacts]
steps:
- name: Checkout Podman
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.version }}
persist-credentials: false
- name: Determine version
id: getversion
- name: Normalize version for Windows
id: normalized-windows-version
env:
VERSION: ${{ needs.build-artifacts.outputs.version_display }}
VERSION: ${{ needs.get-version.outputs.version_display }}
run: |
$version = "${env:VERSION}"
if ($version.Length -gt 0 -and $version[0] -eq "v") {
Expand All @@ -172,7 +185,7 @@ jobs:
- name: Download Windows zip artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: release-artifacts
name: release-artifacts-${{ needs.get-version.outputs.version_display }}
path: ${{ github.workspace }}\release-artifacts
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
Expand Down Expand Up @@ -209,7 +222,7 @@ jobs:
id: build
env:
PODMAN_ARCH: ${{ matrix.arch }}
VERSION: ${{ steps.getversion.outputs.version }}
VERSION: ${{ steps.normalized-windows-version.outputs.version }}
run: |
contrib\win-installer\build.ps1 `
-Version "${env:VERSION}" `
Expand All @@ -224,14 +237,14 @@ jobs:
- name: Rename the MSI
env:
PODMAN_ARCH: ${{ matrix.arch }}
VERSION: ${{ steps.getversion.outputs.version }}
VERSION: ${{ steps.normalized-windows-version.outputs.version }}
run: |
Push-Location contrib\win-installer
Copy-Item -Path "podman-${env:VERSION}.msi" -Destination "podman-installer-windows-${env:PODMAN_ARCH}.msi"
Pop-Location
- name: Upload the MSI
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: win-msi-${{ matrix.arch }}
name: win-msi-${{ matrix.arch }}-${{ needs.get-version.outputs.version_display }}
path: |
.\contrib\win-installer\podman-installer-windows-${{ matrix.arch }}.msi
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,14 @@ jobs:
- name: Download all artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- name: Show artifacts
env:
VERSION: ${{ needs.check.outputs.version }}
run: |
mv mac-installers/* release-artifacts
mv win-msi-amd64/* release-artifacts
mv win-msi-arm64/* release-artifacts
mkdir -p release-artifacts
mv "mac-installers-$VERSION"/* release-artifacts/
mv "win-msi-amd64-$VERSION"/* release-artifacts/
mv "win-msi-arm64-$VERSION"/* release-artifacts/
mv "release-artifacts-$VERSION"/* release-artifacts/
pushd release-artifacts
sha256sum * > shasums
popd
Expand Down