First pass at image sync action
This commit is contained in:
parent
4bcae16608
commit
ac1c50f9d7
8
.github/workflows/lint.yaml
vendored
8
.github/workflows/lint.yaml
vendored
@ -3,9 +3,17 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/lint.yaml
|
||||
- .github/workflows/install.yaml
|
||||
- charts/**
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/lint.yaml
|
||||
- .github/workflows/install.yaml
|
||||
- charts/**
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
4
.github/workflows/publish-artifacts.yaml
vendored
4
.github/workflows/publish-artifacts.yaml
vendored
@ -3,6 +3,10 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/publish-artifacts.yaml
|
||||
- charts/**
|
||||
- utils/**
|
||||
|
||||
jobs:
|
||||
build_push_utils_image:
|
||||
|
62
.github/workflows/sync-images.yaml
vendored
Normal file
62
.github/workflows/sync-images.yaml
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
name: sync images
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/sync-images.yaml
|
||||
- skopeo-manifests/**
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/sync-images.yaml
|
||||
- skopeo-manifests/**
|
||||
|
||||
jobs:
|
||||
sync_images:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
component:
|
||||
- calico
|
||||
# - ccm-openstack
|
||||
# - cilium
|
||||
# - cluster-autoscaler
|
||||
# - csi-cinder
|
||||
# - ingress-nginx
|
||||
# - kube-prometheus-stack
|
||||
# - kubernetes-dashboard
|
||||
# - loki-stack
|
||||
# - mellanox-network-operator
|
||||
# - metrics-server
|
||||
# - nfd
|
||||
# - nvidia-gpu-operator
|
||||
steps:
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install skopeo
|
||||
run: sudo apt-get -y update && sudo apt-get install -y skopeo
|
||||
|
||||
- name: Log in with skopeo
|
||||
run: >-
|
||||
echo ${{ secrets.GITHUB_TOKEN }} |
|
||||
skopeo login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Check component manifest for changes
|
||||
uses: dorny/paths-filter@v2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
manifest:
|
||||
- skopeo-manifests/${{ matrix.component }}.yml
|
||||
|
||||
- name: Sync component images
|
||||
if: ${{ steps.changes.outputs.manifest == 'true' }}
|
||||
run: >-
|
||||
skopeo sync
|
||||
--src yaml skopeo-manifests/${{ matrix.component }}.yml
|
||||
--dest docker ghcr.io/stackhpc/capi
|
||||
--scoped
|
||||
--all
|
23
skopeo-manifests/calico.yml
Normal file
23
skopeo-manifests/calico.yml
Normal file
@ -0,0 +1,23 @@
|
||||
docker.io:
|
||||
images:
|
||||
calico/apiserver:
|
||||
- v3.24.5
|
||||
calico/cni:
|
||||
- v3.24.5
|
||||
calico/csi:
|
||||
- v3.24.5
|
||||
calico/kube-controllers:
|
||||
- v3.24.5
|
||||
calico/node:
|
||||
- v3.24.5
|
||||
calico/node-driver-registrar:
|
||||
- v3.24.5
|
||||
calico/pod2daemon-flexvol:
|
||||
- v3.24.5
|
||||
calico/typha:
|
||||
- v3.24.5
|
||||
|
||||
quay.io:
|
||||
images:
|
||||
tigera/operator:
|
||||
- v1.28.5
|
Loading…
x
Reference in New Issue
Block a user