Skip to content

workflows: add build of the LVH image in GHA #2

workflows: add build of the LVH image in GHA

workflows: add build of the LVH image in GHA #2

Workflow file for this run

name: build and push image
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: quay.io/lvh-images/lvh
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
# - name: Login to quay.io
# uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
# with:
# registry: quay.io
# username: ${{ secrets.QUAY_USERNAME_RELEASE_USERNAME }}
# password: ${{ secrets.QUAY_PASSWORD_RELEASE_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
push: ${{ github.event_name != 'pull_request' }}
context: .
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}