chore(ci): 更新镜像 #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker-sync-to-aliyun | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
images: | |
name: 'publish-docker-action:latest' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- aledbf/kube-keepalived-vip:0.35 | |
- alpine:3.15 | |
- alpine:3.18 | |
- busybox:1.31.1 | |
- bitnami/apache-exporter:0.11.0-debian-11-r73 | |
- bitnami/postgresql:14.5.0-debian-11-r35 | |
- bitnami/redis:7.2.1-debian-11-r0 | |
- bitnami/wordpress:5.9.2-debian-10-r26 | |
- bitnami/wordpress:6.1.1-debian-11-r15 | |
- csiplugin/snapshot-controller:v4.0.0 | |
- dn11exp/proxy-miner-exp:1.0.0a10 | |
- dn11exp/proxy-miner-exp:1.0.0a18 | |
- feiyu563/prometheus-alert:v4.9 | |
- gcr.io/k8s-staging-sig-storage/nfs-subdir-external-provisioner:v4.0.0 | |
- ghcr.io/k8snetworkplumbingwg/multus-cni:snapshot-thick | |
- golang:1.20 | |
- gotafire/kube-rbac-proxy:v0.13.0 | |
- gotafire/kube-state-metrics:v2.3.0 | |
- gotafire/node-exporter:v1.3.1 | |
- grafana/grafana:8.5.14 | |
- jimmidyson/configmap-reload:v0.3.0 | |
- k8s.gcr.io/sig-storage/csi-attacher:v3.4.0 | |
- k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.4.0 | |
- k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0 | |
- k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.6.2 | |
- k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0 | |
- k8s.gcr.io/sig-storage/livenessprobe:v2.3.0 | |
- k8s.gcr.io/sig-storage/hostpathplugin:v1.7.3 | |
- k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2 | |
- kubeedge/cloudcore:v1.9.2 | |
- kubeedge/cloudcore:v1.15.2 | |
- kubeedge/csidriver:v1.1.0 | |
- kubeedge/csidriver:v1.9.2 | |
- kubeedge/edgemesh-agent:v1.17.0 | |
- kubeedge/installation-package:v1.15.2 | |
- kubeedge/iptables-manager:v1.15.2 | |
- kubesphere/edgeservice:v0.2.0 | |
- kubesphere/kube-rbac-proxy:v0.8.0 | |
- kubesphere/kube-rbac-proxy:v0.11.0 | |
- kubesphere/notification-manager-operator:v1.4.0 | |
- kubesphere/kubectl:v1.22.0 | |
- kubesphere/kube-state-metrics:v2.5.0 | |
- kubesphere/ks-installer:v3.3.1 | |
- kubesphere/ks-console:v3.3.1 | |
- kubesphere/ks-controller-manager:v3.3.1 | |
- kubesphere/ks-apiserver:v3.3.1 | |
- kubesphere/openelb:v0.4.4 | |
- kubesphere/prometheus-config-reloader:v0.55.1 | |
- kubesphere/prometheus-operator:v0.55.1 | |
- kubespheredev/kube-webhook-certgen:v1.1.1 | |
- mcr.microsoft.com/k8s/csi/nfs-csi:latest | |
- mcr.microsoft.com/k8s/csi/nfs-csi:v3.1.0 | |
- mirrorgooglecontainers/defaultbackend-amd64:1.4 | |
- mongo:5.0.6 | |
- mysql:5.7 | |
- nginx:stable-alpine3.17 | |
- openebs/node-disk-manager:2.1.0 | |
- openebs/node-disk-operator:2.1.0 | |
- openebs/provisioner-localpv:3.5.0 | |
- openebs/linux-utils:3.5.0 | |
- postgres:14-alpine | |
- postgres:15-alpine | |
- postgres:16-alpine | |
- prom/alertmanager:v0.23.0 | |
- prom/node-exporter:v1.3.1 | |
- prom/prometheus:v2.34.0 | |
- quay.io/argoproj/argocd:v2.8.20 | |
- quay.io/external_storage/nfs-client-provisioner:v3.1.0-k8s1.11 | |
- quay.io/k8scsi/csi-attacher:v1.1.1 | |
- quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 | |
- quay.io/k8scsi/csi-provisioner:v1.2.1 | |
- quay.io/k8scsi/hostpathplugin:v1.1.0 | |
- redis:7 | |
- registry.k8s.io/dns/k8s-dns-node-cache:1.22.20 | |
- registry.k8s.io/ingress-nginx/controller:v1.10.0 | |
- registry.k8s.io/ingress-nginx/controller:v1.10.1 | |
- registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.4.0 | |
- registry.k8s.io/pause:3.9 | |
- victoriametrics/operator:v0.25.1 | |
- victoriametrics/victoria-metrics:v1.77.1 | |
- victoriametrics/vmagent:v1.77.1 | |
- victoriametrics/vmalert:v1.76.0 | |
- vulhub/redis:5.0.7 | |
steps: | |
- name: Pull image from Docker Hub | |
run: docker pull ${{ matrix.image }} | |
- name: Tag image | |
id: tag-image | |
run: | | |
after_image=`echo ${{ matrix.image }} | awk -F "/" '{print $NF}'` | |
docker tag ${{ matrix.image }} registry.cn-hangzhou.aliyuncs.com/hz-test-1/$after_image | |
echo ::set-output name=AFTER_IMAGE::$(echo $after_image) | |
- name: Login to Aliyun registry | |
uses: azure/docker-login@v1 | |
with: | |
login-server: registry.cn-hangzhou.aliyuncs.com | |
username: ${{ secrets.ACR_USERNAME }} | |
password: ${{ secrets.ACR_PASSWORD }} | |
- name: Push image to Aliyun | |
run: docker push registry.cn-hangzhou.aliyuncs.com/hz-test-1/${{ steps.tag-image.outputs.AFTER_IMAGE }} |