Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv


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

ENV PYTHONDONTWRITEBYTECODE=True \
PYTHONUNBUFFERED=True \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
file: .devcontainer/Dockerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ jobs:
file: Dockerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
16 changes: 15 additions & 1 deletion .github/workflows/publish-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/devcontainer
REGISTRY: ghcr.io

jobs:
publish-devcontainer:
Expand All @@ -36,6 +36,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set current datetime as env variable
run: CURRENT_DATETIME=$(date --iso-8601=seconds) >> $GITHUB_ENV

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
Expand All @@ -45,6 +48,17 @@ jobs:
type=ref,event=branch
type=sha,prefix={{branch}}-
type=raw,value=latest,enable={{is_default_branch}}
labels: |
maintainer=a5chin <[email protected]>
org.opencontainers.image.created=${{ env.CURRENT_DATETIME }}
org.opencontainers.image.url=https://github.com/a5chin/python-uv
org.opencontainers.image.source=https://github.com/a5chin/python-uv
org.opencontainers.image.vendor=a5chin <[email protected]>
org.opencontainers.image.title=python-uv
org.opencontainers.image.description=Dev Container for Python development with uv-based dependency management and environment configuration.
org.opencontainers.image.documentation=https://a5chin.github.io/python-uv/
org.opencontainers.image.authors=a5chin <[email protected]>
org.opencontainers.image.licenses=MIT

- name: Build and push devcontainer image
uses: docker/build-push-action@v6
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv


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

WORKDIR /app

Expand Down