Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksterious authored May 4, 2023
1 parent 38908f1 commit 193173b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
name: Publish Docker image
on:
release:
types: [published]
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: flinkwise/postgres_notifier

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: flinkwise/postgres_notifier:latest
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 193173b

Please sign in to comment.