Skip to content

Update build.yml

Update build.yml #2

Workflow file for this run

name: build and push container
on:
push:
branches: [ "main", "github-packages" ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
working-directory: "./IguideME.Web"

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

View workflow run for this annotation

GitHub Actions / build and push container

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 40, Col: 9): Unexpected value 'working-directory'
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}