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
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
podman build -t binfmt . | |
podman save --format oci-archive binfmt > binfmt.oci | |
./unbase_oci -i include -l binfmt.oci binfmt.oci binfmt_distroless.oci | |
image="$(podman load < binfmt_distroless.oci | awk '{ print $NF }')" | |
podman tag "$image" "ghcr.io/${{ github.repository }}" | |
podman login -u token -p "${{ github.token }}" ghcr.io | |
podman push "ghcr.io/${{ github.repository }}" |