Skip to content

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

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

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

Workflow file for this run

name: Build Docker Images
on: push
jobs:
build:
name: Build Docker Images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
labels: |
org.opencontainers.image.title="PhotoStructure base tools"
org.opencontainers.image.description="This image is used to compile native dependencies used by the PhotoStructure for Docker image"
org.opencontainers.image.documentation="https://photostructure.com/server/photostructure-for-docker/"
images: |
photostructure/base-tools-debian
ghcr.io/photostructure/base-tools-debian
tags: |
# minimal git SHA tag
type=sha
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Log in to GitHub Container Registry
if: github.event_name != 'pull_request'
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:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}