File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1414env :
1515 GIT_BRANCH : " 3.2"
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' }}
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
You can’t perform that action at this time.
0 commit comments