Update docker-image.yml

main
Katelya 2025-08-31 15:10:10 +08:00 committed by GitHub
parent 3fbab6c512
commit ae2a08e79c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,6 @@ concurrency:
cancel-in-progress: true
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ toLower(github.repository) }}
jobs:
build-and-push:
runs-on: ubuntu-latest
@ -34,6 +33,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set image name to lowercase
run: echo "IMAGE_NAME=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
@ -102,6 +103,8 @@ jobs:
- build-and-push
if: github.event_name != 'pull_request'
steps:
- name: Set image name to lowercase
run: echo "IMAGE_NAME=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Download digests
uses: actions/download-artifact@v4
with: