Skip to content

Automate the docker image base operating system build #13

Automate the docker image base operating system build

Automate the docker image base operating system build #13

Workflow file for this run

name: Docker image build - base OS
on:
pull_request:
branches: [ "ngeet-2024" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [amd64, arm64]
steps:
- name: checkout
uses: actions/checkout@v4
- name: Docker QEMU
uses: docker/setup-qemu-action@v3
- name: Docker Setup Buildx
uses: docker/[email protected]
env:
DOCKER_CONFIG: docker/baseos/gcc1120
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
platform: ${{ format('linux/{0}', matrix.platform }}

Check failure on line 36 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / Docker image build - base OS

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 36, Col: 19): Unexpected end of expression: 'platform'. Located at position 28 within expression: format('linux/{0}', matrix.platform
context: "{{defaultContext}}:docker/baseos/gcc1120"
push: true
tags: ngeetropics/baseos:testbuild-${{ matrix.platform }}