Skip to content

Commit 03b9176

Browse files
committed
overriding labels in metadata step
1 parent 8708b24 commit 03b9176

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,20 @@ jobs:
6262
id: meta
6363
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
6464
with:
65-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
66-
context: git
65+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
66+
labels: |
67+
maintainer=dzsquared
68+
org.opencontainers.image.title="SQL container manager"
69+
org.opencontainers.image.description="Create, connect, and manage SQL dev containers"
70+
org.opencontainers.image.vendor="DrewSK.Tech"
71+
com.docker.desktop.extension.api.version="0.3.4"
72+
com.docker.extension.screenshots="[{'alt':'SQL extension with container details expanded.', 'url':'https://raw.githubusercontent.com/dzsquared/docker-sql-extension/main/images/screenshot2.png'}, {'alt':'SQL extension with two containers listed.', 'url':'https://raw.githubusercontent.com/dzsquared/docker-sql-extension/main/images/screenshot1.png'}]"
73+
com.docker.desktop.extension.icon="https://raw.githubusercontent.com/dzsquared/docker-sql-extension/main/Database.png"
74+
com.docker.extension.detailed-description="With the SQL extension you can create a new SQL container quickly in Docker Desktop. Select the version of SQL Server you want to use, enter a container name, SQL port, and generate a password before clicking the plus button to create the container. Once a container is created, you can start, stop, and delete it using the buttons in the extension tab. Connect to the container directly in the extension with the embedded sqlcmd tool or by using your preferred SQL client. For convenience the connection string is displayed in the extension tab and a button for launching Azure Data Studio is provided."
75+
com.docker.extension.publisher-url="https://github.com/dzsquared/docker-sql-extension"
76+
com.docker.extension.additional-urls="[{'title':'Source code and notices','url':'https://github.com/dzsquared/docker-sql-extension/blob/main/README.md'},{'title':'License','url':'https://github.com/dzsquared/docker-sql-extension/blob/main/LICENSE'}]"
77+
com.docker.extension.categories="database"
78+
com.docker.extension.changelog="<h3>1.0, Initial release</h3><ul><li>SQL container creation</li><li>Connection strings</li><li>Add and list databases</li><li>Embedded sqlcmd CLI</li></ul>"
6779
6880
# Build and push Docker image with Buildx
6981
# https://github.com/docker/build-push-action

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ RUN apt-get update && apt-get install -y curl bzip2 && \
3131
RUN ./cli-${TARGETARCH}.sh
3232

3333
FROM debian:bullseye-slim
34-
LABEL org.opencontainers.image.title="Docker SQL Dev: SQL dev container manager" \
35-
org.opencontainers.image.description="SQL databases on demand, locally and easily" \
34+
LABEL org.opencontainers.image.title="SQL container manager" \
35+
org.opencontainers.image.description="Create, connect, and manage SQL dev containers" \
3636
org.opencontainers.image.vendor="DrewSK.Tech" \
3737
com.docker.desktop.extension.api.version="0.3.4" \
3838
com.docker.extension.screenshots="[{\"alt\":\"SQL extension with container details expanded.\", \"url\":\"https://raw.githubusercontent.com/dzsquared/docker-sql-extension/main/images/screenshot2.png\"}, {\"alt\":\"SQL extension with two containers listed.\", \"url\":\"https://raw.githubusercontent.com/dzsquared/docker-sql-extension/main/images/screenshot1.png\"}]" \

0 commit comments

Comments
 (0)