Skip to content

[CD] Build containers on release and push #39

[CD] Build containers on release and push

[CD] Build containers on release and push #39

name: "CD: Env containers"
on:
push:
branches: [master]
release:
types: [published]
workflow_dispatch:
jobs:
containers_build_and_push:
uses: INGInious/.github/.github/workflows/containers.yml@32ce51f6cb26177d398f38ccf7f3a11016c3e5bc
with:
working-directory: base-containers
context-path: context.yml
compose-path: compose.yml
registry: ghcr.io
container_type: env
version: ${{ github.event_name == "push" && github.ref_name || github.event.release.tag_name }}

Check failure on line 20 in .github/workflows/env_containers.yml

View workflow run for this annotation

GitHub Actions / CD: Env containers

Invalid workflow file

The workflow is not valid. .github/workflows/env_containers.yml (Line: 20, Col: 16): Unexpected symbol: '"push"'. Located at position 22 within expression: github.event_name == "push" && github.ref_name || github.event.release.tag_name
secrets:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}