-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (32 loc) · 2.04 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
39
# Copy our required images from dockerhub to ghcr
name: mirror images
on:
push:
branches:
- main
jobs:
mirror-images:
runs-on: ubuntu-latest
steps:
# Use crane to easily copy images from docker hub to GHCR
# https://github.com/google/go-containerregistry/tree/a0c4bd256482b8522065d5f6cf966281ef270680/cmd/crane#setup-on-github-actions
- name: Setup google/go-containerregistry/cmd/crane
uses: imjasonh/setup-crane@01d26682810dcd47bfc8eb1efe791558123a9373
with:
version: v0.6.0
- name: Copy weavecloud containers to GHCR
run: |
# Copy all the versions of flux we use (1.22 is for k8s < 1.16)
crane copy docker.io/fluxcd/flux:1.22.2 ghcr.io/${{ github.repository }}/flux:1.22.2
crane copy docker.io/fluxcd/flux:1.24.1 ghcr.io/${{ github.repository }}/flux:1.24.1
crane copy docker.io/fluxcd/flux:1.24.2 ghcr.io/${{ github.repository }}/flux:1.24.2
# weave components may either be via gitsha or specific version
crane copy docker.io/weaveworks/weave-kube:git-34de0b10a69c ghcr.io/${{ github.repository }}/weave-kube:git-34de0b10a69c
crane copy docker.io/weaveworks/weave-kube:2.8.1 ghcr.io/${{ github.repository }}/weave-kube:2.8.1
crane copy docker.io/weaveworks/weave-npc:git-34de0b10a69c ghcr.io/${{ github.repository }}/weave-npc:git-34de0b10a69c
crane copy docker.io/weaveworks/weave-npc:2.8.1 ghcr.io/${{ github.repository }}/weave-npc:2.8.1
crane copy docker.io/memcached:1.4.39-alpine ghcr.io/${{ github.repository }}/memcached:1.4.39-alpine
crane copy docker.io/weaveworks/flux-adapter:0.1.1 ghcr.io/${{ github.repository }}/flux-adapter:0.1.1
crane copy docker.io/weaveworks/scope:1.13.2 ghcr.io/${{ github.repository }}/scope:1.13.2
crane copy docker.io/weaveworks/watch:master-85fdf1d ghcr.io/${{ github.repository }}/watch:master-85fdf1d
# for the prometheus images (prometheus, node-exporter, cloudwatch-exporter) we'll use the copies in quay.io