Skip to content

Commit

Permalink
Release Docker image to Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
maoo authored Feb 28, 2024
1 parent 5c8974d commit 8d349f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,25 @@ jobs:

- name: Login to GitHub Registry
if: ${{ github.ref_type == 'tag' }}
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: finos
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
images: ${{ github.repository }}
flavor: latest=true
tags: |
type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
type=raw,value=postgres-${{ github.ref_name }},enable=${{ github.ref_type == 'tag' }}
type=raw,value=postgres
- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.ref_type == 'tag' }}
Expand Down

0 comments on commit 8d349f6

Please sign in to comment.