Skip to content
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: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
logout: false
- name: Use Skopeo Tools Sync Image to Docker Hub
run: |
skopeo copy docker://docker.io/userxy2015/arm64v8/redis:6.2.14 docker://registry.cn-hangzhou.aliyuncs.com/chappie/arm64v8/redis:6.2.14