Skip to content

Update main.yml

Update main.yml #39

Workflow file for this run

name: Sync Image to Aliyun Example
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git pull
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: aliyun2356249070
password: 1qaz!QAZ
logout: false
- name: Use Skopeo Tools Sync Image to Docker Hub
run: |
skopeo copy docker://docker.io/calico/kube-controllers:v3.29.0 docker://registry.cn-hangzhou.aliyuncs.com/daoweihe/calico-kube-controllers:v3.29.0