Skip to content

Publish images

Publish images #7

name: Publish images
on: workflow_dispatch
permissions:
packages: write
jobs:
publish:
strategy:
matrix:
include:
- runner: "macos-13" # Ventura Intel
name: ventura-i386
- runner: "flyci-macos-large-latest-m1" # Ventura ARM
name: ventura-arm64
- runner: "macos-14" # Sonoma ARM
name: sonoma-arm64
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: brew install crane
- run: sudo python -m macosjail jail_dir
- run: sudo crane auth login ghcr.io -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}"
- run: sudo bash -c 'crane append --oci-empty-base -t "ghcr.io/macoscontainers/macos-jail/${{ matrix.name }}:latest" -f <(tar -f - -c -C jail_dir .)'