Skip to content

Commit ce4fa91

Browse files
committed
ci: push testing images
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent a238232 commit ce4fa91

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/image.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696

9797
- name: Docker meta
9898
id: meta
99+
if: github.event_name != 'pull_request'
99100
uses: docker/metadata-action@v4
100101
with:
101102
images: quay.io/go-skynet/local-ai
@@ -107,6 +108,15 @@ jobs:
107108
latest=${{ matrix.tag-latest }}
108109
suffix=${{ matrix.tag-suffix }}
109110
111+
- name: Docker meta (ttl.sh)
112+
id: meta
113+
if: github.event_name == 'pull_request'
114+
uses: docker/metadata-action@v4
115+
with:
116+
images: ttl.sh/local-ai-${{ github.head_ref || github.ref }}-${{ matrix.tag-suffix }}
117+
tags: |
118+
type=raw,value=12h
119+
110120
- name: Set up QEMU
111121
uses: docker/setup-qemu-action@master
112122
with:
@@ -136,6 +146,6 @@ jobs:
136146
context: .
137147
file: ./Dockerfile
138148
platforms: ${{ matrix.platforms }}
139-
push: ${{ github.event_name != 'pull_request' }}
149+
push: true
140150
tags: ${{ steps.meta.outputs.tags }}
141151
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)