Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit 24febef

Browse files
authored
Update adhoc.yaml
1 parent a90bc7d commit 24febef

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/adhoc.yaml

+28-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,34 @@ on:
88
required: true
99

1010
jobs:
11-
build:
11+
build-amd:
12+
if: github.ref != 'refs/heads/main'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: docker/setup-qemu-action@v2
17+
- uses: docker/setup-buildx-action@v2
18+
- uses: docker/login-action@v2
19+
with:
20+
registry: quay.io
21+
username: ${{ secrets.QUAY_USERNAME }}
22+
password: ${{ secrets.QUAY_PASSWORD }}
23+
- name: Free disk space
24+
# https://github.com/actions/virtual-environments/issues/709
25+
run: |
26+
sudo apt-get clean
27+
df -h
28+
- name: Build and push
29+
uses: docker/build-push-action@v3
30+
with:
31+
push: true
32+
tags: quay.io/ndustrialio/postgresml:${{ github.event.inputs.tag || 'staging' }},quay.io/ndustrialio/postgresml:latest
33+
cache-from: type=gha
34+
cache-to: type=gha,mode=max
35+
provenance: false
36+
context: ./pgml-extension/
37+
platforms: linux/amd64
38+
build-arm:
1239
if: github.ref != 'refs/heads/main'
1340
runs-on: ubuntu-latest
1441
steps:

0 commit comments

Comments
 (0)