From a0e1cd5eb6af8e37a6c893375665d673045ff452 Mon Sep 17 00:00:00 2001 From: linjinbao66 Date: Sun, 11 Apr 2021 18:55:52 +0800 Subject: [PATCH] update --- .github/workflows/gcr.yaml | 2 +- .github/workflows/{pkg.yaml => ghcr.yaml} | 4 ++-- .github/workflows/registry.yml | 2 +- README.md | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) rename .github/workflows/{pkg.yaml => ghcr.yaml} (86%) diff --git a/.github/workflows/gcr.yaml b/.github/workflows/gcr.yaml index cbcc18a..b8898e6 100644 --- a/.github/workflows/gcr.yaml +++ b/.github/workflows/gcr.yaml @@ -1,4 +1,4 @@ -name: k8s image transfer +name: k8s image transfer to gcr on: [push] jobs: transfer: diff --git a/.github/workflows/pkg.yaml b/.github/workflows/ghcr.yaml similarity index 86% rename from .github/workflows/pkg.yaml rename to .github/workflows/ghcr.yaml index d36671c..81ece36 100644 --- a/.github/workflows/pkg.yaml +++ b/.github/workflows/ghcr.yaml @@ -1,8 +1,8 @@ -name: k8s image transfer +name: k8s image transfer to ghcr on: [push] jobs: transfer: - name: transfer-pkg-image + name: transfer-ghcr-image runs-on: ubuntu-latest steps: - name: docker-login diff --git a/.github/workflows/registry.yml b/.github/workflows/registry.yml index 578e307..d8334f0 100644 --- a/.github/workflows/registry.yml +++ b/.github/workflows/registry.yml @@ -26,5 +26,5 @@ jobs: with: github-token: ${{ secrets.REGISTRY_TOKEN }} image-name: gcr-image-transfer - image-tag: latest + image-tag: ${{ github.sha }} diff --git a/README.md b/README.md index d1051d0..f4c5eb2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ 该项目用于同步gcr的镜像到官方docker hub中,其原理为利用github action提供的外网服务器拉去gcr镜像,然后重新打上标签,再推送到官方docker hub中。 + +2021-04-11 新增支持同步gcr到ghcr + ## 使用方法 修改images中的内容