Skip to content

switch to bake

switch to bake #248

Workflow file for this run

name: docker-build
on:
push:
pull_request:
jobs:
multi-arch-push:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: erisamoe
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
if: github.ref == 'ref/heads/main'
name: Build and push
uses: docker/bake-action@v6
env:
MULTI_PLATFORM: true
with:
push: true
set: |

Check failure on line 38 in .github/workflows/docker-build.yml

View workflow run for this annotation

GitHub Actions / docker-build

Invalid workflow file

The workflow is not valid. .github/workflows/docker-build.yml (Line: 38, Col: 9): Unexpected value 'set' .github/workflows/docker-build.yml (Line: 49, Col: 9): Unexpected value 'set'
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
-
if: github.ref != 'ref/heads/main'
name: Build test image
uses: docker/bake-action@v6
env:
MULTI_PLATFORM: true
with:
push: false
set: |
*.cache-from=type=gha
*.cache-to=type=gha,mode=max