Skip to content

enable multi-arch build #10

enable multi-arch build

enable multi-arch build #10

Workflow file for this run

name: oci-push
on:
workflow_run:
workflows:
- oci-builds
types:
- completed
jobs:
push:
name: push
if: |
github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download mapt assets
uses: actions/download-artifact@v4
with:
name: mapt
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- name: Get mapt build informaiton
run: |
echo "source_event=$(cat mapt-event)" >> "$GITHUB_ENV"
if [ env.source_event = 'pull_request' ]; then \
echo "IMG=$(cat mapt-image)" >> "$GITHUB_ENV"; \
fi

Check failure on line 36 in .github/workflows/push-oci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/push-oci.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
- name: Log in to ghcr.io
if: ${{ env.source_event == 'pull_request' }}
uses: redhat-actions/podman-login@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in quay.io
if: ${{ env.source_event == 'push' }}
uses: redhat-actions/podman-login@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
- name: Push mapt
run: |
make oci-load
make oci-push