-
Notifications
You must be signed in to change notification settings - Fork 254
33 lines (30 loc) · 1.19 KB
/
synctest.yml
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
name: synctest
on:
push: { }
pull_request: { }
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
test_sync_job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.4
- name: Build
run: make
- name: Run docker registry
run: docker run -d -p 5000:5000 --restart=always --name registry registry:2
- name: Run image-syncer
run: ./image-syncer --proc=6 --auth=./.github/workflows/config/test-auth.yml --images=./.github/workflows/config/test-images.yml
- name: Use docker to check result
run: |
docker pull localhost:5000/image-syncer-test/alpine:3.18.2 &&
docker pull localhost:5000/image-syncer-test/olm:v0.18.3 &&
docker pull localhost:5000/image-syncer-test/hybridnet:v0.8.2 &&
docker pull localhost:5000/image-syncer-test/hybridnet@sha256:14b267eb38aa85fd12d0e168fffa2d8a6187ac53a14a0212b0d4fce8d729598c &&
docker pull localhost:5000/image-syncer-test/hybridnet:v0.8.2-test