diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 3aae162..c7d65eb 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -1,8 +1,9 @@ name: docker-push on: - pull_request: - branches: ['main'] + release: + types: + - published jobs: docker-push: @@ -41,3 +42,9 @@ jobs: push: true file: build/docker/Dockerfile tags: d33bs/wintry:latest,d33bs/wintry:${{ steps.poetry-version.outputs.VERSION }} + - name: Docker Hub Description + uses: peter-evans/dockerhub-description@v3 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_TOKEN }} + repository: d33bs/wintry diff --git a/README.md b/README.md index abf0af1..db31575 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -# test-semver-docker-deploy +# Demonstrational Python Poetry Dynamic Semver to Docker Hub Distribution + +A demonstrational repository showing how Python via Poetry dynamic versioning can be used to distribute Docker images on Docker Hub. + +For more information see: [https://github.com/d33bs/test-semver-docker-deploy](https://github.com/d33bs/test-semver-docker-deploy) diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile index db9641b..9ae631a 100644 --- a/build/docker/Dockerfile +++ b/build/docker/Dockerfile @@ -1,5 +1,14 @@ FROM python:3 +LABEL base_image="python:3" +LABEL software="wintry" +LABEL about.summary="An example project leveraging various automation." +LABEL about.home="https://github.com/d33bs/test-semver-docker-deploy" +LABEL about.documentation="https://github.com/d33bs/test-semver-docker-deploy" +LABEL about.license_file="https://github.com/d33bs/test-semver-docker-deploy/LICENSE" +LABEL about.license="SPDX:BSD-3-Clause" +LABEL about.tags="general" + WORKDIR /usr/src/app COPY pyproject.toml poetry.lock ./