Skip to content

fix: cd on all branches #11

fix: cd on all branches

fix: cd on all branches #11

Workflow file for this run

name: 📦 CD
on:
push:
branches:
- "**"
jobs:
docker:
runs-on: ubuntu-latest
name: Build and push Docker image
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Inject enhanced GitHub environment variables
uses: rlespinasse/github-slug-action@v5
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: |

Check failure on line 27 in .github/workflows/cd.yml

View workflow run for this annotation

GitHub Actions / 📦 CD

Invalid workflow file

The workflow is not valid. .github/workflows/cd.yml (Line: 27, Col: 17): Unexpected symbol: '+'. Located at position 41 within expression: github.ref_name == 'main' && 'ghcr.io/' + env.GITHUB_REPOSITORY_OWNER_PART_SLUG + '/sites-faciles:latest' || ''
ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/sites-faciles:${{ env.GITHUB_REF_SLUG }}
${{ github.ref_name == 'main' && 'ghcr.io/' + env.GITHUB_REPOSITORY_OWNER_PART_SLUG + '/sites-faciles:latest' || '' }}
cache-from: type=registry,ref=ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/sites-faciles:${{ env.GITHUB_REF_SLUG }}
cache-to: type=inline