Skip to content

Add a GA workflow for building the local Docker image #1

Add a GA workflow for building the local Docker image

Add a GA workflow for building the local Docker image #1

name: Build local Docker image on Pull Request
on:
pull_request:
branches: ['master']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Build Docker image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09
with:
context: .
push: false
tags: latest