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

Bump docker/setup-buildx-action from 3.1.0 to 3.2.0 #350

Bump docker/setup-buildx-action from 3.1.0 to 3.2.0

Bump docker/setup-buildx-action from 3.1.0 to 3.2.0 #350

Workflow file for this run

name: Docker
on:
pull_request: {}
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Cache Docker
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
${{ runner.os }}-
- name: Checkout
uses: actions/checkout@v4
- name: Generate metadata for Docker
id: docker_meta
uses: crazy-max/[email protected]
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Buildx
uses: docker/[email protected]
- name: Log in to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: docker_build
uses: docker/[email protected]
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache