fix(workflows): ensure Docker tags use lowercase repository names #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Docker Build and PushInvalid workflow file
|