Skip to content

Commit

Permalink
Update python-docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach authored May 28, 2021
1 parent 2542c71 commit e3ab628
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-weconnect-mqtt-${{ github.sha }}
- name: Login to DockerHub
if: (github.event_name == 'push' && (contains(github.ref, '/heads/main') || contains(github.ref, '/tags/v')))
#if: (github.event_name == 'push' && (contains(github.ref, '/heads/main') || contains(github.ref, '/tags/v')))
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
if: (github.event_name == 'push' && (contains(github.ref, '/heads/main') || contains(github.ref, '/tags/v')))
#if: (github.event_name == 'push' && (contains(github.ref, '/heads/main') || contains(github.ref, '/tags/v')))
uses: docker/[email protected]
with:
registry: ghcr.io
Expand All @@ -54,7 +54,8 @@ jobs:
uses: docker/[email protected]
with:
context: docker
push: (github.event_name == 'push' && (contains(github.ref, '/heads/main') || contains(github.ref, '/tags/v')))
push: true
#push: (github.event_name == 'push' && (contains(github.ref, '/heads/main') || contains(github.ref, '/tags/v')))
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit e3ab628

Please sign in to comment.