Skip to content

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

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

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

Workflow file for this run

name: Build and push image from PR
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- '**'
jobs:
build:
name: Build and push image from PR
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to ghcr
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the image
run: make build
- name: Push PR image to the registry
run: make pr-image
env:
TAG: ${{ github.head_name }}