Skip to content

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

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

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

Workflow file for this run

name: DLCS Build, Test & Publish
on:
push:
branches: [ "main", "develop" ]
tags: [ "v*" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
test-compositehandler:
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v4
- id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- id: pre-commit
uses: pre-commit/[email protected]
- id: docker-setup-buildx
uses: docker/setup-buildx-action@v3
- id: docker-meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/dlcs/compositehandler
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,enable=true,prefix=,format=long
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- id: docker-login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: docker-build-push
uses: docker/build-push-action@v6
with:
context: .
builder: ${{ steps.docker-setup-buildx.outputs.name }}
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}
push: ${{ github.actor != 'dependabot[bot]' }}