diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d2152e3..e3b9e93d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 @@ -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: diff --git a/Dockerfile b/Dockerfile index c5f1ec76..b3ba8143 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"