Skip to content

Commit b563025

Browse files
authored
Revert "Revert lowercase conversion for repo"
1 parent 6dc26b0 commit b563025

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/docker-3.2.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
# Every week at 8am on Mondays, publish the 3.2 branch:
99
# NOTE: `schedule` event is only triggered for the default branch:
1010
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
11-
# schedule:
12-
# - cron: "0 8 * * 1"
11+
schedule:
12+
- cron: "0 8 * * 1"
1313

1414
env:
1515
GIT_BRANCH: "3.2"
@@ -18,6 +18,9 @@ jobs:
1818
deploy:
1919
runs-on: ubuntu-24.04
2020
steps:
21+
- name: lowercase the repository name
22+
run: echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
23+
2124
- name: Source checkout
2225
uses: actions/checkout@v4
2326

@@ -33,11 +36,11 @@ jobs:
3336
id: docker_meta
3437
uses: docker/metadata-action@v5
3538
with:
36-
images: ${{ github.repository }}
39+
images: ${{ env.REPO }}
3740
labels: |
3841
org.opencontainers.image.version=${{ env.GIT_BRANCH }}
3942
org.opencontainers.image.revision=${{ github.sha }}
40-
org.opencontainers.image.title=${{ github.repository }}
43+
org.opencontainers.image.title=${{ env.REPO }}
4144
4245
- name: GitHub login
4346
if: ${{ github.event_name != 'pull_request' }}
@@ -58,5 +61,5 @@ jobs:
5861
cache-to: type=gha, scope=${{ github.workflow }}
5962
labels: ${{ steps.docker_meta.outputs.labels }}
6063
tags: |
61-
ghcr.io/${{ github.repository }}:${{ env.GIT_BRANCH }}
62-
ghcr.io/${{ github.repository }}:latest
64+
ghcr.io/${{ env.REPO }}:${{ env.GIT_BRANCH }}
65+
ghcr.io/${{ env.REPO }}:latest

0 commit comments

Comments
 (0)