Skip to content

Bump docker/build-push-action from 4 to 5 #1042

Bump docker/build-push-action from 4 to 5

Bump docker/build-push-action from 4 to 5 #1042

Workflow file for this run

---
name: Build the container image
on:
push:
branches:
- "main"
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
podman:
runs-on: ubuntu-latest
name: Build the container with buildah
steps:
- uses: actions/checkout@v4
- run: buildah bud --layers .
docker:
runs-on: ubuntu-latest
name: Build and publish the container with docker
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/tags/') }}
tags: |
ghcr.io/suse/bci-dockerfile-generator:latest