Skip to content

Adhoc Build

Adhoc Build #8

Workflow file for this run

name: Adhoc Build
on:
workflow_dispatch:
inputs:
tag:
description: 'Image tag to set with the docker label'
required: true
jobs:
build-amd:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
run: |
sudo apt-get clean
df -h
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: quay.io/ndustrialio/postgresml:${{ github.event.inputs.tag || 'staging' }},quay.io/ndustrialio/postgresml:latest
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
context: ./pgml-extension/
platforms: linux/amd64
build-arm:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
run: |
sudo apt-get clean
df -h
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: quay.io/ndustrialio/postgresml:${{ github.event.inputs.tag || 'staging' }},quay.io/ndustrialio/postgresml:latest
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
context: ./pgml-extension/
platforms: linux/arm64