Docker buildx bake experiment for builds #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Bake Docker ImagesInvalid workflow file
|
||
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 | ||