Skip to content

Commit 9f71a9b

Browse files
authored
Update docker-image.yml
Include Image Labels
1 parent 6faeb8b commit 9f71a9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
type=semver,pattern=v{{version}}
4343
type=semver,pattern=v{{major}}.{{minor}}
4444
type=semver,pattern=latest
45+
labels: |
46+
org.opencontainers.image.title={{ env.IMAGE_NAME }}
47+
org.opencontainers.image.version=v{{version}}
48+
org.opencontainers.image.authors={{ env.USERNAME }}
49+
org.opencontainers.image.licenses="MIT"
50+
org.opencontainers.image.url="https://github.com/{{ env.IMAGE_NAME }}"
51+
org.opencontainers.image.source="https://github.com/{{ env.IMAGE_NAME }}"
4552
4653
- name: Build and Push Image
4754
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)