Skip to content

Build Docker

Build Docker #77

Workflow file for this run

name: Build Docker
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
push:
branches:
- main
paths:
- Dockerfile
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login into Github Docker Registery
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build Docker Images
uses: docker/build-push-action@v6
with:
tags: ghcr.io/shopware/varnish
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
push: true
provenance: false