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

Bump crazy-max/ghaction-docker-meta from 5.0.0 to 5.2.0 #318

Bump crazy-max/ghaction-docker-meta from 5.0.0 to 5.2.0

Bump crazy-max/ghaction-docker-meta from 5.0.0 to 5.2.0 #318

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@v3
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