Skip to content

Merge pull request #2 from Flared/fred_bump_pgcli_version #6

Merge pull request #2 from Flared/fred_bump_pgcli_version

Merge pull request #2 from Flared/fred_bump_pgcli_version #6

Workflow file for this run

name: Release Docker
on:
push:
branches:
- "main"
tags:
- "*"
release:
types: [published]
jobs:
release-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
uses: docker/metadata-action@v3
id: meta
with:
images: flared/pgcli
- uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}