We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c03a79e + 512f57d commit 60a46f4Copy full SHA for 60a46f4
.github/workflows/deploy_to_ghcr.yml
@@ -27,5 +27,9 @@ jobs:
27
28
- name: Build and Push Docker Image
29
run: |
30
- docker build -t ghcr.io/${{ github.repository }}:latest .
31
- docker push ghcr.io/${{ github.repository }}:latest
+ GITHUB_REPO="${GITHUB_REPO,,}" # convert repo name to lowercase as required by docker
+ echo "building docker image in repository '$GITHUB_REPO' ..."
32
+ docker build --label "org.opencontainers.image.title=copilot-metrics-viewer" --label "org.opencontainers.image.description=Metrics viewer for GitHub Copilot usage" --label "org.opencontainers.image.source=$GITHUB_REPO" -t ghcr.io/$GITHUB_REPO:latest .
33
+ docker push ghcr.io/$GITHUB_REPO:latest
34
+ env:
35
+ GITHUB_REPO: ${{ github.repository }}
0 commit comments