Skip to content

Docker buildx bake experiment for builds #9

Docker buildx bake experiment for builds

Docker buildx bake experiment for builds #9

Workflow file for this run

on:
push:
branches:
- main
- dev
pull_request:
name: Bake Docker Images
jobs:
build:
runs-on: ubuntu-latest-4x
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/bake-action@v4
with:
targets: "build-test"
push: false
- name: Test Connect (privileged container)
run: |
just -f build.justfile test-connect
- name: Build and push
if: github.ref == 'refs/heads/main'
uses: docker/bake-action@v4
with:
targets: "build"
push: true
build-content:
runs-on: ubuntu-latest-4x
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/bake-action@v4
with:
files:
- content/docker-bake.hcl

Check failure on line 58 in .github/workflows/build-bake.yaml

View workflow run for this annotation

GitHub Actions / Bake Docker Images

Invalid workflow file

The workflow is not valid. .github/workflows/build-bake.yaml (Line: 58, Col: 13): A sequence was not expected .github/workflows/build-bake.yaml (Line: 66, Col: 13): A sequence was not expected
push: false
- name: Build and push
if: github.ref == 'refs/heads/main'
uses: docker/bake-action@v4
with:
files:
- content/docker-bake.hcl
push: true