Skip to content

Commit

Permalink
Sync to gcr
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 18, 2024
1 parent e2bf928 commit 8213f15
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 36 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/sync-gcp-mp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ on:
required: true
type: string

jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-24.04
steps:
Expand All @@ -22,14 +25,40 @@ jobs:

- uses: imjasonh/[email protected]

- name: Log in to the GitHub Container registry
- name: Log into GCR
env:
GCP_MP_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.GCP_MP_SERVICE_ACCOUNT_JSON_KEY }}
run: |
echo "install gcloud cli"
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get -qq update || true
sudo apt-get install google-cloud-cli
echo
echo "configure gcloud auth"
echo "$GCP_MP_SERVICE_ACCOUNT_JSON_KEY" > "$HOME"/gcloud.json
gcloud auth activate-service-account --key-file=$HOME/gcloud.json
gcloud auth configure-docker us-docker.pkg.dev
- name: Log into GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: 1gtm
password: ${{ secrets.LGTM_GITHUB_TOKEN }}

- name: Sync
- name: Sync to GCR
env:
IMAGE_REGISTRY: us-docker.pkg.dev/appscode-public/ace-mp
TAG: ${{ inputs.version }}
run: |
./catalog/sync-gcp-mp-images.sh
crane cp ghcr.io/appscode-gcp-mp/ace-mp/deployer:$TAG $IMAGE_REGISTRY/deployer:$TAG
TRACK_ID=$(echo "$TAG" | sed 's/\.[^.]*$//')
crane cp ghcr.io/appscode-gcp-mp/ace-mp/prometheus-operator:$TAG $IMAGE_REGISTRY/prometheus-operator:$TAG
crane cp ghcr.io/appscode-gcp-mp/ace-mp/deployer:$TAG $IMAGE_REGISTRY/deployer:$TRACK_ID
- name: Sync to GHCR
env:
IMAGE_REGISTRY: ghcr.io/appscode-gcp-mp/ace-mp
TAG: ${{ inputs.version }}
Expand Down
7 changes: 7 additions & 0 deletions catalog/ace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,14 @@
- ghcr.io/kubedb/kubedb-crd-manager:v0.3.0
- ghcr.io/kubedb/kubedb-ops-manager:v0.35.2
- ghcr.io/kubedb/kubedb-provisioner:v0.48.3
- ghcr.io/kubedb/kubedb-schema-manager:v0.24.0
- ghcr.io/kubedb/kubedb-ui-server:v0.24.0
- ghcr.io/kubedb/kubedb-webhook-server:v0.24.1
- ghcr.io/kubedb/pg-coordinator:v0.32.0
- ghcr.io/kubedb/postgres-archiver:v0.9.0_15.5-alpine
- ghcr.io/kubedb/postgres-init:0.15.0
- ghcr.io/kubedb/postgres-restic-plugin:v0.11.0_16.1
- ghcr.io/kubedb/redis-coordinator:v0.27.0
- ghcr.io/kubedb/redis-init:0.9.0
- ghcr.io/kubedb/redis-restic-plugin:v0.11.0
- ghcr.io/kubedb/redis_exporter:1.58.0
Expand All @@ -109,6 +112,7 @@
- openpolicyagent/gatekeeper:v3.13.3
- opensearchproject/opensearch:2.1.0
- prometheuscommunity/postgres-exporter:v0.15.0
- quay.io/jetstack/cert-manager-acmesolver:v1.15.2
- quay.io/jetstack/cert-manager-cainjector:v1.15.2
- quay.io/jetstack/cert-manager-controller:v1.15.2
- quay.io/jetstack/cert-manager-startupapicheck:v1.15.2
Expand All @@ -118,15 +122,18 @@
- quay.io/prometheus/alertmanager:v0.27.0
- quay.io/prometheus/node-exporter:v1.8.2
- quay.io/prometheus/prometheus:v2.54.0
- quay.io/thanos/thanos:v0.32.5
- rabbitmq:3.12.1-management
- rancher/kine:v0.11.4
- registry.k8s.io/autoscaling/cluster-autoscaler:v1.27.1
- registry.k8s.io/csi-secrets-store/driver:v1.4.1
- registry.k8s.io/defaultbackend-amd64:1.5
- registry.k8s.io/ingress-nginx/controller:v1.11.1
- registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20221220-controller-v1.5.1-58-g787ea74b6
- registry.k8s.io/kube-apiserver:v1.30.2
- registry.k8s.io/kube-controller-manager:v1.30.2
- registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.13.0
- registry.k8s.io/metrics-server/metrics-server:v0.7.2
- registry.k8s.io/prometheus-adapter/prometheus-adapter:v0.11.2
- registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.0
- registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.11.1
Expand Down
13 changes: 7 additions & 6 deletions catalog/copy-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ $CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/inbox-age
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/inbox-server:latest $IMAGE_REGISTRY/appscode/inbox-server:latest
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/inbox-ui:0.0.2 $IMAGE_REGISTRY/appscode/inbox-ui:0.0.2
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/k8s-wait-for:v2.0 $IMAGE_REGISTRY/appscode/k8s-wait-for:v2.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kube-rbac-proxy:v0.11.0 $IMAGE_REGISTRY/appscode/kube-rbac-proxy:v0.11.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kube-rbac-proxy:v0.13.0 $IMAGE_REGISTRY/appscode/kube-rbac-proxy:v0.13.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kube-rbac-proxy:v0.15.0 $IMAGE_REGISTRY/appscode/kube-rbac-proxy:v0.15.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kube-ui-server:v0.0.48 $IMAGE_REGISTRY/appscode/kube-ui-server:v0.0.48
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kubectl-nonroot:1.31 $IMAGE_REGISTRY/appscode/kubectl-nonroot:1.31
Expand Down Expand Up @@ -326,11 +324,14 @@ $CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-auto
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-crd-manager:v0.3.0 $IMAGE_REGISTRY/kubedb/kubedb-crd-manager:v0.3.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-ops-manager:v0.35.2 $IMAGE_REGISTRY/kubedb/kubedb-ops-manager:v0.35.2
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-provisioner:v0.48.3 $IMAGE_REGISTRY/kubedb/kubedb-provisioner:v0.48.3
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-schema-manager:v0.24.0 $IMAGE_REGISTRY/kubedb/kubedb-schema-manager:v0.24.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-ui-server:v0.24.0 $IMAGE_REGISTRY/kubedb/kubedb-ui-server:v0.24.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-webhook-server:v0.24.1 $IMAGE_REGISTRY/kubedb/kubedb-webhook-server:v0.24.1
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pg-coordinator:v0.32.0 $IMAGE_REGISTRY/kubedb/pg-coordinator:v0.32.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.9.0_15.5-alpine $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.9.0_15.5-alpine
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-init:0.15.0 $IMAGE_REGISTRY/kubedb/postgres-init:0.15.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-restic-plugin:v0.11.0_16.1 $IMAGE_REGISTRY/kubedb/postgres-restic-plugin:v0.11.0_16.1
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-coordinator:v0.27.0 $IMAGE_REGISTRY/kubedb/redis-coordinator:v0.27.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-init:0.9.0 $IMAGE_REGISTRY/kubedb/redis-init:0.9.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-restic-plugin:v0.11.0 $IMAGE_REGISTRY/kubedb/redis-restic-plugin:v0.11.0
$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis_exporter:1.58.0 $IMAGE_REGISTRY/kubedb/redis_exporter:1.58.0
Expand All @@ -356,6 +357,7 @@ $CMD cp --allow-nondistributable-artifacts --insecure natsio/prometheus-nats-exp
$CMD cp --allow-nondistributable-artifacts --insecure openpolicyagent/gatekeeper:v3.13.3 $IMAGE_REGISTRY/openpolicyagent/gatekeeper:v3.13.3
$CMD cp --allow-nondistributable-artifacts --insecure opensearchproject/opensearch:2.1.0 $IMAGE_REGISTRY/opensearchproject/opensearch:2.1.0
$CMD cp --allow-nondistributable-artifacts --insecure prometheuscommunity/postgres-exporter:v0.15.0 $IMAGE_REGISTRY/prometheuscommunity/postgres-exporter:v0.15.0
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/jetstack/cert-manager-acmesolver:v1.15.2 $IMAGE_REGISTRY/jetstack/cert-manager-acmesolver:v1.15.2
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/jetstack/cert-manager-cainjector:v1.15.2 $IMAGE_REGISTRY/jetstack/cert-manager-cainjector:v1.15.2
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/jetstack/cert-manager-controller:v1.15.2 $IMAGE_REGISTRY/jetstack/cert-manager-controller:v1.15.2
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/jetstack/cert-manager-startupapicheck:v1.15.2 $IMAGE_REGISTRY/jetstack/cert-manager-startupapicheck:v1.15.2
Expand All @@ -365,23 +367,22 @@ $CMD cp --allow-nondistributable-artifacts --insecure quay.io/prometheus-operato
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/prometheus/alertmanager:v0.27.0 $IMAGE_REGISTRY/prometheus/alertmanager:v0.27.0
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/prometheus/node-exporter:v1.8.2 $IMAGE_REGISTRY/prometheus/node-exporter:v1.8.2
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/prometheus/prometheus:v2.54.0 $IMAGE_REGISTRY/prometheus/prometheus:v2.54.0
$CMD cp --allow-nondistributable-artifacts --insecure quay.io/thanos/thanos:v0.32.5 $IMAGE_REGISTRY/thanos/thanos:v0.32.5
$CMD cp --allow-nondistributable-artifacts --insecure rabbitmq:3.12.1-management $IMAGE_REGISTRY/rabbitmq:3.12.1-management
$CMD cp --allow-nondistributable-artifacts --insecure rancher/kine:v0.11.4 $IMAGE_REGISTRY/rancher/kine:v0.11.4
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/autoscaling/cluster-autoscaler:v1.27.1 $IMAGE_REGISTRY/autoscaling/cluster-autoscaler:v1.27.1
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/csi-secrets-store/driver:v1.4.1 $IMAGE_REGISTRY/csi-secrets-store/driver:v1.4.1
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/defaultbackend-amd64:1.5 $IMAGE_REGISTRY/defaultbackend-amd64:1.5
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/ingress-nginx/controller:v1.11.1 $IMAGE_REGISTRY/ingress-nginx/controller:v1.11.1
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20221220-controller-v1.5.1-58-g787ea74b6 $IMAGE_REGISTRY/ingress-nginx/kube-webhook-certgen:v20221220-controller-v1.5.1-58-g787ea74b6
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/kube-apiserver:v1.30.2 $IMAGE_REGISTRY/kube-apiserver:v1.30.2
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/kube-controller-manager:v1.30.2 $IMAGE_REGISTRY/kube-controller-manager:v1.30.2
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.13.0 $IMAGE_REGISTRY/kube-state-metrics/kube-state-metrics:v2.13.0
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/metrics-server/metrics-server:v0.7.2 $IMAGE_REGISTRY/metrics-server/metrics-server:v0.7.2
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/prometheus-adapter/prometheus-adapter:v0.11.2 $IMAGE_REGISTRY/prometheus-adapter/prometheus-adapter:v0.11.2
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.0 $IMAGE_REGISTRY/sig-storage/csi-node-driver-registrar:v2.10.0
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.11.1 $IMAGE_REGISTRY/sig-storage/csi-node-driver-registrar:v2.11.1
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.8.0 $IMAGE_REGISTRY/sig-storage/csi-node-driver-registrar:v2.8.0
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/csi-provisioner:v4.0.0 $IMAGE_REGISTRY/sig-storage/csi-provisioner:v4.0.0
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/csi-snapshotter:v6.3.3 $IMAGE_REGISTRY/sig-storage/csi-snapshotter:v6.3.3
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/livenessprobe:v2.10.0 $IMAGE_REGISTRY/sig-storage/livenessprobe:v2.10.0
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/livenessprobe:v2.12.0 $IMAGE_REGISTRY/sig-storage/livenessprobe:v2.12.0
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/livenessprobe:v2.13.1 $IMAGE_REGISTRY/sig-storage/livenessprobe:v2.13.1
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/nfsplugin:v4.7.0 $IMAGE_REGISTRY/sig-storage/nfsplugin:v4.7.0
$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/sig-storage/snapshot-controller:v8.0.1 $IMAGE_REGISTRY/sig-storage/snapshot-controller:v8.0.1
Expand Down
Loading

0 comments on commit 8213f15

Please sign in to comment.