Skip to content

Fix toLower function name #16

Fix toLower function name

Fix toLower function name #16

Workflow file for this run

name: Build App Docker
on:
push:
paths:
- "Dockerfile"
- ".github/workflows/build-docker.yml"
pull_request:
paths:
- "Dockerfile"
- ".github/workflows/build-docker.yml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Git
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Checkout code
run: |

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

View workflow run for this annotation

GitHub Actions / Build App Docker

Invalid workflow file

The workflow is not valid. .github/workflows/build-docker.yml (Line: 24, Col: 14): Unrecognized function: 'toLower'. Located at position 1 within expression: toLower(github.repository) .github/workflows/build-docker.yml (Line: 29, Col: 14): Unrecognized function: 'toLower'. Located at position 1 within expression: toLower(github.repository)
git clone https://github.com/${{ toLower(github.repository) }} .
git checkout ${{ github.sha }}
- name: Build docker image
run: |
cd ${{ github.workspace }}
echo "FROM ubuntu:latest" > Dockerfile
docker build -t ghcr.io/${{ toLower(github.repository) }}/app-image:latest .
- name: Login to GH registry
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ toLower(github.repository)_owner }} --password-stdin
- name: Push Docker image
run: |
docker push ghcr.io/${{ toLower(github.repository) }}/app-image:latest