Skip to content

fix: fixed lowercase method issue #3

fix: fixed lowercase method issue

fix: fixed lowercase method issue #3

Workflow file for this run

# It automatically builds your Docker image and pushes it to GHCR
name: Build and Push Docker Image
# We will run this workflow every time you push to the 'main' branch
on:
push:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # Give the job permission to write to GHCR
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Step to generate lowercase repository name
- name: Set lowercase repository name
run: echo "repo=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true # Push the image after building
tags: |
ghcr.io/${{ env.repo }}:latest
ghcr.io/${{ env.repo }}:${{ github.sha }}