Skip to content

Merge pull request #16 from rocky-linux/revert-15-NeilHanlon-patch-1 #4

Merge pull request #16 from rocky-linux/revert-15-NeilHanlon-patch-1

Merge pull request #16 from rocky-linux/revert-15-NeilHanlon-patch-1 #4

Workflow file for this run

---
name: Build container images for OVAL
on:
push:
branches: ['main']
jobs:
buildx:
runs-on:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Login to ghcr
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64
context: .
file: Containerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/rocky-linux/oval:latest
cache-from: type=gha
cache-to: type=gha,mode=max