mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-09-02 07:46:24 +00:00
Build ostools image on PR as well
Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
13
.github/workflows/tool-image.yml
vendored
13
.github/workflows/tool-image.yml
vendored
@@ -2,6 +2,7 @@
|
|||||||
name: 'build tools container images'
|
name: 'build tools container images'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@@ -54,8 +55,18 @@ jobs:
|
|||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.QUAY_USERNAME }}
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
password: ${{ secrets.QUAY_PASSWORD }}
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
|
context: ./tools-image
|
||||||
|
file: ./tools-image/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: false
|
||||||
|
tags: ${{ steps.prep.outputs.tags }}
|
||||||
|
- name: Build and push
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
|
Reference in New Issue
Block a user