8080 echo "MAJOR=$MAJOR" >> $GITHUB_ENV
8181 echo "MINOR=$MINOR" >> $GITHUB_ENV
8282 echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV
83+ echo "CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
8384
8485 - name : Log in to GHCR
8586 uses : docker/login-action@v3
@@ -101,14 +102,14 @@ jobs:
101102 build-args : |
102103 VERSION=${{ github.ref_name }}
103104 labels : |
104- org.opencontainers.image.title=" ${{ github.event.repository.name }}"
105- org.opencontainers.image.description=" ${{ github.event.repository.description }}"
106- org.opencontainers.image.source=" ${{ github.event.repository.html_url }}"
107- org.opencontainers.image.url=" ghcr.io/boxboxjason/gitlab-sync"
108- org.opencontainers.image.created=" ${{ github.event }}"
109- org.opencontainers.image.revision=" ${{ github.sha }}"
110- org.opencontainers.image.version=" ${{ github.ref_name }}"
111- org.opencontainers.image.vendor=" ${{ github.repository_owner}}"
105+ org.opencontainers.image.title=${{ github.event.repository.name }}
106+ org.opencontainers.image.description=${{ github.event.repository.description }}
107+ org.opencontainers.image.source=${{ github.event.repository.html_url }}
108+ org.opencontainers.image.url=ghcr.io/boxboxjason/gitlab-sync
109+ org.opencontainers.image.created=${{ env.CREATED }}
110+ org.opencontainers.image.revision=${{ github.sha }}
111+ org.opencontainers.image.version=${{ github.ref_name }}
112+ org.opencontainers.image.vendor=${{ github.repository_owner}}
112113 tags : |
113114 ghcr.io/${{ env.REPO_NAME }}:${{ github.ref_name }}
114115 ghcr.io/${{ env.REPO_NAME }}:${{ env.MAJOR }}.${{ env.MINOR }}
0 commit comments