Skip to content

Fix GitHub Actions workflow #2

Fix GitHub Actions workflow

Fix GitHub Actions workflow #2

name: Build container images
on:
push:
branches:
- main
schedule:
# Basically picked at random to try and be a low-load time for GitHub Actions
- cron: '20 3 * * 0'
workflow_dispatch:
jobs:
build_push_images:
env:

Check failure on line 14 in .github/workflows/build-and-push.yaml

View workflow run for this annotation

GitHub Actions / Build container images

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-push.yaml (Line: 14, Col: 5): Required property is missing: runs-on
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
steps:
- name: Log in to GitHub Container Registry
uses: redhat-actions/podman-login@v1
with:
username: ${{ github.actor }}
password: ${{ github.token }}
# TODO use {{ github.repository_owner }} when https://github.com/redhat-actions/podman-login/issues/44 is fixed
registry: ghcr.io/seagl
- name: Checkout Repo
uses: actions/checkout@v1
- name: Build and push container images
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: ./build-and-push.sh 24.04