Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Merge pull request #1 from community-tech-alliance/kn/increase-heartbeat #7

Merge pull request #1 from community-tech-alliance/kn/increase-heartbeat

Merge pull request #1 from community-tech-alliance/kn/increase-heartbeat #7

name: build_and_publish_image
on:
push:
branches:
- main
tags:
- v*
pull_request:
types: [opened, synchronize, reopened]
jobs:
publish-source-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker Metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/community-tech-alliance/source-postgres
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}