Skip to content

Commit

Permalink
Merge pull request #7 from d33bs/development
Browse files Browse the repository at this point in the history
move to releases for docker hub dist
  • Loading branch information
d33bs authored Dec 26, 2023
2 parents 63fde29 + 6e11220 commit 47f6dec
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: docker-push

on:
pull_request:
branches: ['main']
release:
types:
- published

jobs:
docker-push:
Expand Down Expand Up @@ -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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
9 changes: 9 additions & 0 deletions build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./
Expand Down

0 comments on commit 47f6dec

Please sign in to comment.