Skip to content

test

test #1

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Catalog API CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- src/BuildingBlocks/**
- src/Services/Catalog/**
- .github/workflows/catalog-api-CI.yml
pull_request:
branches: [ "main" ]
paths:
- src/BuildingBlocks/**
- src/Services/Catalog/**
- .github/workflows/catalog-api-CI.yml
env:
SERVICE: eshop-catalog.api
IMAGE: eshop-catalog.api
ProjectPath: src/Services/Catalog/Catalog.API
ProjectTestPath: src/Services/Catalog/Catalog.API.IntegrationTests
RegistryUsername: ${{ env.RegistryUsername }}

Check failure on line 27 in .github/workflows/catalog-api-CI.yaml

View workflow run for this annotation

GitHub Actions / Catalog API CI

Invalid workflow file

The workflow is not valid. .github/workflows/catalog-api-CI.yaml (Line: 27, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.RegistryUsername
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push
with:
service: ${{ env.SERVICE }}
image_name: ${{ env.IMAGE }}
registry_username: ${{ env.RegistryUsername }}
project_path: ${{ env.ProjectPath }}
test_path: ${{ env.ProjectTestPath }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}