Skip to content

Commit

Permalink
Merge pull request #441 from LUXROBO/feature/docker-package
Browse files Browse the repository at this point in the history
Enhance docker support
  • Loading branch information
94929 committed Dec 28, 2021
2 parents 28ebb1e + 5e6e8d6 commit 60f781c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -69,16 +72,17 @@ jobs:
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
- name: login-to-dockerhub
- name: login-to-ghcr
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.LUXROBO_TOKEN }}
- name: build-and-push-docker-image
uses: docker/build-push-action@v2
with:
push: true
tags: 1uxrobo/pymodi:${{ steps.checkout_branch.outputs.version }}
tags: ghcr.io/luxrobo/pymodi:${{ steps.checkout_branch.outputs.version }}
- name: send-release-email
uses: dawidd6/action-send-mail@v2.2.0
with:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Expand Up @@ -3,3 +3,5 @@ COPY . /usr/src/app
WORKDIR /usr/src/app
RUN python setup.py install --user
WORKDIR /workspace

LABEL org.opencontainers.image.source="https://github.com/luxrobo/pymodi"

0 comments on commit 60f781c

Please sign in to comment.