Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

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

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

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

Workflow file for this run

name: docker
on:
push:
tags:
- v*.*.*
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
- 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
uses: docker/build-push-action@v5
with:
platforms: 'linux/amd64,linux/arm64/v8'
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}