Skip to content
Prev Previous commit
Next Next commit
Only update readme on release, also try build docker on PR
  • Loading branch information
PGijsbers committed Jul 27, 2023
commit e279c2b2e419a6cd14f5659015f6dfb6a9e3cd09
10 changes: 8 additions & 2 deletions .github/workflows/release_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: release-docker
on:
push:
branches:
- 'main'
- 'develop'
- 'docker'
tags:
- 'v*'
pull_request:
branches:
- 'develop'

jobs:

Expand All @@ -21,6 +25,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -40,12 +45,13 @@ jobs:
uses: docker/build-push-action@v4
with:
context: ./docker/
push: true
tags: ${{ steps.meta_dockerhub.outputs.tags }}
labels: ${{ steps.meta_dockerhub.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'push' }}

- name: Update repo description
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down