Skip to content

Commit aa2bbac

Browse files
authored
GH action to copy images from sigwindowstools/ to ghcr.io (#213)
* GH action to copy images from sigwindowstools/ to ghcr.io * Updating GH action to use regsync instead of regctl to sync multiple images at once
1 parent 4598963 commit aa2bbac

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: sync-registries
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
packages: write
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: docker/login-action@v1
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.repository_owner }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
- uses: actions/checkout@v2
20+
- name: copy image
21+
run: |
22+
curl -L https://github.com/regclient/regclient/releases/download/v0.4.2/regsync-linux-amd64 -o regsync
23+
chmod +x regsync
24+
./regsync version
25+
./regsync once -c hack/regsync.yaml

hack/regsync.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 1
2+
sync:
3+
- source: sigwindowstools/kube-proxy
4+
target: ghcr.io/kubernetes-sigs/sig-windows/kube-proxy
5+
type: repository
6+
tags:
7+
allow:
8+
- "*-calico-hostprocess"
9+
- source: sigwindowstools/calico-node
10+
target: ghcr.io/kubernetes-sigs/sig-windows/calico-node
11+
type: repository
12+
- source: sigwindowstools/calico-install
13+
target: ghcr.io/kubernetes-sigs/sig-windows/calico-install
14+
type: repository

0 commit comments

Comments
 (0)