Skip to content

add build arg

add build arg #4

Workflow file for this run

name: Build Image
on:
workflow_dispatch:
push:
branches: [ '**' ]
paths:
- 'docker/**'
- '.github/workflows/docker.yml'
jobs:
check-upstream:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Latest Ubuntu
tag: latest
dockerfile: docker/Dockerfile
- name: Latest Alpine
tag: alpine
dockerfile: docker/alpine.Dockerfile
- name: Dev Ubuntu
tag: dev
dockerfile: docker/Dockerfile
- name: Dev Alpine
tag: dev-alpine
dockerfile: docker/alpine.Dockerfile
steps:
- name: Checkout
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 to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Build ${{ matrix.name }} and Push
uses: docker/build-push-action@v6
with:
file: ${{ matrix.dockerfile }}
context: .
platforms: ${{ matrix.platforms }}
push: true
tags: ghcr.io/topi314/lavasrc:${{ matrix.tag }}
build-args:
TAG: ${{ matrix.tag }}

Check failure on line 56 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / Build Image

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 56, Col: 13): A mapping was not expected