-
Notifications
You must be signed in to change notification settings - Fork 112
38 lines (34 loc) · 1.1 KB
/
mirror-images.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Mirror pre-requisite images for Shipwright samples
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: # Manual trigger
jobs:
mirror-images:
if: ${{ github.repository == 'shipwright-io/build' }}
runs-on: ubuntu-latest
steps:
- uses: imjasonh/setup-crane@31b88efe9de28ae0ffa220711af4b60be9435f6e
- name: Mirror images
env:
REPO: ghcr.io/${{ github.repository_owner }}/shipwright-samples
run: |
for IMAGE in \
library/golang:1.16 \
library/golang:1.17 \
library/golang:1.18 \
library/golang:1.19 \
library/golang:1.20 \
library/golang:1.21 \
library/golang:1.22 \
library/golang:1.23 \
library/maven:3-jdk-8-openj9 \
library/node:12 \
library/node:14 \
library/node:16 \
library/python:3.8 \
library/python:3.9 \
openliberty/open-liberty:kernel-java8-openj9-ubi \
; do
crane cp "${IMAGE}" "${REPO}/$(cut -d/ -f2 <<<"${IMAGE}")"
done