Skip to content

Update actions/checkout action to v4 (#99) #101

Update actions/checkout action to v4 (#99)

Update actions/checkout action to v4 (#99) #101

Workflow file for this run

name: docker
on:
push:
branches:
- master
paths:
- .github/workflows/docker.yaml
- '**.go'
- go.*
- Dockerfile
tags:
- v*
pull_request:
branches:
- master
paths:
- .github/workflows/docker.yaml
- '**.go'
- go.*
- Dockerfile
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/metadata-action@v4
id: metadata
with:
images: ghcr.io/${{ github.repository }}
- uses: int128/docker-build-cache-config-action@v1
id: cache
with:
image: ghcr.io/${{ github.repository }}/cache
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3
with:
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache-from: ${{ steps.cache.outputs.cache-from }}
cache-to: ${{ steps.cache.outputs.cache-to }}
platforms: linux/amd64,linux/arm64,linux/arm/v7