Revert "Revert lowercase conversion for repo"

This commit is contained in:
Dirk Wetter
2025-06-23 23:12:59 +02:00
committed by GitHub
parent 6dc26b09fe
commit b56302518b

View File

@ -8,8 +8,8 @@ on:
# Every week at 8am on Mondays, publish the 3.2 branch: # Every week at 8am on Mondays, publish the 3.2 branch:
# NOTE: `schedule` event is only triggered for the default branch: # NOTE: `schedule` event is only triggered for the default branch:
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
# schedule: schedule:
# - cron: "0 8 * * 1" - cron: "0 8 * * 1"
env: env:
GIT_BRANCH: "3.2" GIT_BRANCH: "3.2"
@ -18,6 +18,9 @@ jobs:
deploy: deploy:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
steps: steps:
- name: lowercase the repository name
run: echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
- name: Source checkout - name: Source checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -33,11 +36,11 @@ jobs:
id: docker_meta id: docker_meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ${{ github.repository }} images: ${{ env.REPO }}
labels: | labels: |
org.opencontainers.image.version=${{ env.GIT_BRANCH }} org.opencontainers.image.version=${{ env.GIT_BRANCH }}
org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.title=${{ github.repository }} org.opencontainers.image.title=${{ env.REPO }}
- name: GitHub login - name: GitHub login
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
@ -58,5 +61,5 @@ jobs:
cache-to: type=gha, scope=${{ github.workflow }} cache-to: type=gha, scope=${{ github.workflow }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
tags: | tags: |
ghcr.io/${{ github.repository }}:${{ env.GIT_BRANCH }} ghcr.io/${{ env.REPO }}:${{ env.GIT_BRANCH }}
ghcr.io/${{ github.repository }}:latest ghcr.io/${{ env.REPO }}:latest