Skip to content

Commit ffe1c69

Browse files
authored
Merge pull request #101 from a5chin/feature/label
Fix label
2 parents 261ae43 + 27bad76 commit ffe1c69

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv
55

66

77
FROM mcr.microsoft.com/vscode/devcontainers/base:debian
8-
LABEL maintainer="a5chin <[email protected]>"
9-
LABEL org.opencontainers.image.description="Dev Container for Python development with uv-based dependency management and environment configuration."
10-
LABEL org.opencontainers.image.licenses=MIT
11-
LABEL org.opencontainers.image.source=https://github.com/a5chin/python-uv
128

139
ENV PYTHONDONTWRITEBYTECODE=True \
1410
PYTHONUNBUFFERED=True \

.github/workflows/devcontainer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
file: .devcontainer/Dockerfile
5959
push: false
6060
tags: ${{ steps.meta.outputs.tags }}
61+
labels: ${{ steps.meta.outputs.labels }}
6162
cache-from: type=gha
6263
cache-to: type=gha,mode=max
6364

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ jobs:
6262
file: Dockerfile
6363
push: false
6464
tags: ${{ steps.meta.outputs.tags }}
65+
labels: ${{ steps.meta.outputs.labels }}
6566
cache-from: type=gha
6667
cache-to: type=gha,mode=max

.github/workflows/publish-devcontainer.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
workflow_dispatch:
1212

1313
env:
14-
REGISTRY: ghcr.io
1514
IMAGE_NAME: ${{ github.repository }}/devcontainer
15+
REGISTRY: ghcr.io
1616

1717
jobs:
1818
publish-devcontainer:
@@ -36,6 +36,9 @@ jobs:
3636
username: ${{ github.actor }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
3838

39+
- name: Set current datetime as env variable
40+
run: CURRENT_DATETIME=$(date --iso-8601=seconds) >> $GITHUB_ENV
41+
3942
- name: Extract metadata
4043
id: meta
4144
uses: docker/metadata-action@v5
@@ -45,6 +48,17 @@ jobs:
4548
type=ref,event=branch
4649
type=sha,prefix={{branch}}-
4750
type=raw,value=latest,enable={{is_default_branch}}
51+
labels: |
52+
maintainer=a5chin <[email protected]>
53+
org.opencontainers.image.created=${{ env.CURRENT_DATETIME }}
54+
org.opencontainers.image.url=https://github.com/a5chin/python-uv
55+
org.opencontainers.image.source=https://github.com/a5chin/python-uv
56+
org.opencontainers.image.vendor=a5chin <[email protected]>
57+
org.opencontainers.image.title=python-uv
58+
org.opencontainers.image.description=Dev Container for Python development with uv-based dependency management and environment configuration.
59+
org.opencontainers.image.documentation=https://a5chin.github.io/python-uv/
60+
org.opencontainers.image.authors=a5chin <[email protected]>
61+
org.opencontainers.image.licenses=MIT
4862
4963
- name: Build and push devcontainer image
5064
uses: docker/build-push-action@v6

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv
66

77

88
FROM python:$VARIANT-slim
9-
LABEL maintainer="a5chin <[email protected]>"
109

1110
WORKDIR /app
1211

0 commit comments

Comments
 (0)