Skip to content

[HPI-1059] Add support for PR base images. #57

[HPI-1059] Add support for PR base images.

[HPI-1059] Add support for PR base images. #57

Workflow file for this run

name: Build and publish
on:
pull_request:
types:
- closed
branches:
- main
release:
types: [published]
jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Build the image
run: make build
- name: Log in to ghcr
uses: docker/login-action@v3
if: github.event_name == 'release'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the image
if: github.event_name == 'release'
run: make publish
env:
TAG: ${{ github.ref_name }}