Skip to content

Update docker-build.yml #3

Update docker-build.yml

Update docker-build.yml #3

Workflow file for this run

name: CI to Docker
on:
push:
branches: [ master ]
paths:
- '**.c'
- '**.h'
- '**.sh'
- 'Dockerfile'
- '.github/workflows/*'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner.toLowerCase() }}/msd_lite:latest

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

View workflow run for this annotation

GitHub Actions / CI to Docker

Invalid workflow file

The workflow is not valid. .github/workflows/docker-build.yml (Line: 40, Col: 15): Unexpected symbol: '('. Located at position 36 within expression: github.repository_owner.toLowerCase()
platforms: linux/amd64,linux/arm64,linux/arm/v7