@@ -3,6 +3,8 @@ name: Publish Devcontainer to GHCR
33on :
44 push :
55 branches : [main]
6+ tags :
7+ - " v*"
68 paths :
79 - " .devcontainer/Dockerfile"
810 - " .github/workflows/publish-devcontainer.yml"
1517 REGISTRY : ghcr.io
1618
1719jobs :
18- publish-devcontainer :
20+ publish :
1921 runs-on : ubuntu-latest
2022
2123 permissions :
2224 contents : read
2325 packages : write
2426
2527 steps :
26- - name : Checkout repository
28+ - name : Checkout Repository
2729 uses : actions/checkout@v6
2830
29- - name : Set up Docker Buildx
31+ - name : Setup Docker Buildx
3032 uses : docker/setup-buildx-action@v3
3133
32- - name : Log in to Container Registry
34+ - name : Login to Container Registry
3335 uses : docker/login-action@v3
3436 with :
3537 registry : ${{ env.REGISTRY }}
3638 username : ${{ github.actor }}
3739 password : ${{ secrets.GITHUB_TOKEN }}
3840
39- - name : Extract metadata
41+ - name : Extract Metadata
4042 id : meta
4143 uses : docker/metadata-action@v5
4244 with :
@@ -48,16 +50,16 @@ jobs:
4850 type=raw,value=latest,enable={{is_default_branch}}
4951 labels : |
5052 maintainer=a5chin <[email protected] > 51- org.opencontainers.image.url=https://github.com/a5chin/python-uv
52- org.opencontainers.image.source=https://github.com/a5chin/python-uv
53+ org.opencontainers.image.url=https://github.com/${{ github.repository }}
54+ org.opencontainers.image.source=https://github.com/${{ github.repository }}
5355 org.opencontainers.image.vendor=a5chin <[email protected] > 5456 org.opencontainers.image.title=python-uv
5557 org.opencontainers.image.description=Dev Container for Python development with uv-based dependency management and environment configuration.
5658 org.opencontainers.image.documentation=https://a5chin.github.io/python-uv/
5759 org.opencontainers.image.authors=a5chin <[email protected] > 5860 org.opencontainers.image.licenses=MIT
5961
60- - name : Build and push devcontainer image
62+ - name : Build and Push Devcontainer Image
6163 uses : docker/build-push-action@v6
6264 with :
6365 context : .
0 commit comments