Skip to content

Commit

Permalink
Use skopeo to sync csi images to canonical org
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed May 4, 2024
1 parent c1ba471 commit d82309d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/data/sync-csi-images-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
k8s.gcr.io/sig-storage:
images-by-semver:
csi-node-driver-registrar: "= v2.10.0"
csi-provisioner: "= v3.4.1"
csi-resizer: "= v1.7.0"
csi-snapshotter: "= v6.2.1"
21 changes: 21 additions & 0 deletions .github/workflows/sync-csi-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- "KU-384/sync-csi-images"
schedule:
- cron: "0 0 * * *" # Runs every midnight
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Skopeo
run: |
docker run -v $GITHUB_WORKSPACE:/ quay.io/skopeo/stable:v1.15 sync \
--src yaml \
--dest docker \
/.github/data/sync-csi-images-config.yaml ghcr.io/canonical/sig-storage \
--format oci \
--dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
resources:
{{- toYaml .Values.controller.resources | nindent 12 }}
- name: external-resizer
image: k8s.gcr.io/sig-storage/csi-resizer:v1.7.0
image: ghcr.io/canonical/sig-storage/csi-resizer:v1.7.0
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down
6 changes: 3 additions & 3 deletions deploy/charts/rawfile-csi/templates/01-node-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
resources:
{{- toYaml .Values.node.resources | nindent 12 }}
- name: node-driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.10.0
image: ghcr.io/canonical/sig-storage/csi-node-driver-registrar:v2.10.0
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
Expand Down Expand Up @@ -124,7 +124,7 @@ spec:
cpu: 10m
memory: 100Mi
- name: external-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.4.1
image: ghcr.io/canonical/sig-storage/csi-provisioner:v3.4.1
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down Expand Up @@ -154,7 +154,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: external-snapshotter
image: k8s.gcr.io/sig-storage/csi-snapshotter:v6.2.1
image: ghcr.io/canonical/sig-storage/csi-snapshotter:v6.2.1
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down

0 comments on commit d82309d

Please sign in to comment.