Skip to content

Bump docker/build-push-action from 5 to 6 #111

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

Bump docker/build-push-action from 5 to 6 #111

Workflow file for this run

name: docker-publish
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
file: docker/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ github.repository }}/hls4ml-0.8.0:latest
ghcr.io/${{ github.repository }}/hls4ml-0.8.0:${{ github.sha }}