Adhoc Build #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Adhoc Build | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Image tag to set with the docker label' | |
required: true | |
jobs: | |
build: | |
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, linux/arm64 |