Skip to content

fix(workflows): ensure Docker tags use lowercase repository names #2

fix(workflows): ensure Docker tags use lowercase repository names

fix(workflows): ensure Docker tags use lowercase repository names #2

name: Docker Build and Push
on:
push:
branches: ["master"]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./scripts
push: true
tags: ghcr.io/${{ lowercase(github.repository) }}:latest

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

View workflow run for this annotation

GitHub Actions / Docker Build and Push

Invalid workflow file

The workflow is not valid. .github/workflows/docker-build-push.yml (Line: 27, Col: 15): Unrecognized function: 'lowercase'. Located at position 1 within expression: lowercase(github.repository)