-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: fix aliyun sync * chore: fix skopeo sync image
- Loading branch information
Showing
13 changed files
with
205 additions
and
66 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
docker.io: | ||
username: "${DOCKER_USER}" | ||
password: "${DOCKER_PASSWORD}" | ||
apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com: | ||
username: "${ALIYUN_USER}" | ||
password: "${ALIYUN_PASSWORD}" |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,12 +186,35 @@ jobs: | |
|
||
- name: generate image yaml | ||
run: | | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
if [[ -n "${{ env.ALIYUN_USER_NEW }}" && -n "${{ env.ALIYUN_PASSWORD_NEW }}" ]]; then | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
else | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 32 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
fi | ||
- uses: hhyasdf/[email protected] | ||
name: sync image to apecloud aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && (env.ALIYUN_USER_NEW == '' || env.ALIYUN_PASSWORD_NEW == '') }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth-apecloud.yml | ||
images_file: ./image_sync_yaml_apecloud.yml | ||
proc: 6 | ||
retries: 5 | ||
version: v1.5.2 | ||
env: | ||
DOCKER_USER: ${{ env.DOCKER_USER }} | ||
DOCKER_PASSWORD: ${{ env.DOCKER_PASSWORD }} | ||
ALIYUN_USER: ${{ env.ALIYUN_USER }} | ||
ALIYUN_PASSWORD: ${{ env.ALIYUN_PASSWORD }} | ||
|
||
- uses: hhyasdf/[email protected] | ||
name: sync image to all aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && env.ALIYUN_USER_NEW != '' && env.ALIYUN_PASSWORD_NEW != '' }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth.yml | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,12 +185,35 @@ jobs: | |
|
||
- name: generate image yaml | ||
run: | | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
if [[ -n "${{ env.ALIYUN_USER_NEW }}" && -n "${{ env.ALIYUN_PASSWORD_NEW }}" ]]; then | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
else | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 32 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
fi | ||
- uses: hhyasdf/[email protected] | ||
name: sync image to apecloud aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && (env.ALIYUN_USER_NEW == '' || env.ALIYUN_PASSWORD_NEW == '') }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth-apecloud.yml | ||
images_file: ./image_sync_yaml_apecloud.yml | ||
proc: 6 | ||
retries: 5 | ||
version: v1.5.2 | ||
env: | ||
DOCKER_USER: ${{ env.DOCKER_USER }} | ||
DOCKER_PASSWORD: ${{ env.DOCKER_PASSWORD }} | ||
ALIYUN_USER: ${{ env.ALIYUN_USER }} | ||
ALIYUN_PASSWORD: ${{ env.ALIYUN_PASSWORD }} | ||
|
||
- uses: hhyasdf/[email protected] | ||
name: sync image to all aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && env.ALIYUN_USER_NEW != '' && env.ALIYUN_PASSWORD_NEW != '' }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth.yml | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,12 +186,35 @@ jobs: | |
|
||
- name: generate image yaml | ||
run: | | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
if [[ -n "${{ env.ALIYUN_USER_NEW }}" && -n "${{ env.ALIYUN_PASSWORD_NEW }}" ]]; then | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
else | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 32 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
fi | ||
- uses: hhyasdf/[email protected] | ||
name: sync image to apecloud aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && (env.ALIYUN_USER_NEW == '' || env.ALIYUN_PASSWORD_NEW == '') }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth-apecloud.yml | ||
images_file: ./image_sync_yaml_apecloud.yml | ||
proc: 6 | ||
retries: 5 | ||
version: v1.5.2 | ||
env: | ||
DOCKER_USER: ${{ env.DOCKER_USER }} | ||
DOCKER_PASSWORD: ${{ env.DOCKER_PASSWORD }} | ||
ALIYUN_USER: ${{ env.ALIYUN_USER }} | ||
ALIYUN_PASSWORD: ${{ env.ALIYUN_PASSWORD }} | ||
|
||
- uses: hhyasdf/[email protected] | ||
name: sync image to all aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && env.ALIYUN_USER_NEW != '' && env.ALIYUN_PASSWORD_NEW != '' }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth.yml | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,12 +215,35 @@ jobs: | |
|
||
- name: generate image yaml | ||
run: | | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
if [[ -n "${{ env.ALIYUN_USER_NEW }}" && -n "${{ env.ALIYUN_PASSWORD_NEW }}" ]]; then | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
else | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 32 \ | ||
--images "${{ inputs.IMG }}:${{ needs.release-image.outputs.tag-name }}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
fi | ||
- uses: hhyasdf/[email protected] | ||
name: sync image to apecloud aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && (env.ALIYUN_USER_NEW == '' || env.ALIYUN_PASSWORD_NEW == '') }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth-apecloud.yml | ||
images_file: ./image_sync_yaml_apecloud.yml | ||
proc: 6 | ||
retries: 5 | ||
version: v1.5.2 | ||
env: | ||
DOCKER_USER: ${{ env.DOCKER_USER }} | ||
DOCKER_PASSWORD: ${{ env.DOCKER_PASSWORD }} | ||
ALIYUN_USER: ${{ env.ALIYUN_USER }} | ||
ALIYUN_PASSWORD: ${{ env.ALIYUN_PASSWORD }} | ||
|
||
- uses: hhyasdf/[email protected] | ||
name: sync image to all aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && env.ALIYUN_USER_NEW != '' && env.ALIYUN_PASSWORD_NEW != '' }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth.yml | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,16 +367,40 @@ jobs: | |
;; | ||
esac | ||
fi | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 32 \ | ||
--images "${IMAGES_INPUT}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
if [[ -n "${{ env.ALIYUN_USER_NEW }}" && -n "${{ env.ALIYUN_PASSWORD_NEW }}" ]]; then | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 27 \ | ||
--images "${IMAGES_INPUT}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
else | ||
bash ${{ github.workspace }}/apecloud-cd/.github/utils/utils.sh \ | ||
--type 32 \ | ||
--images "${IMAGES_INPUT}" \ | ||
--registry "${{ env.DOCKER_REGISTRY_URL }}" | ||
fi | ||
- uses: hhyasdf/[email protected] | ||
name: sync image to apecloud aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && (env.ALIYUN_USER_NEW == '' || env.ALIYUN_PASSWORD_NEW == '') }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth-apecloud.yml | ||
images_file: ./image_sync_yaml_apecloud.yml | ||
proc: 6 | ||
retries: 5 | ||
version: v1.5.2 | ||
env: | ||
DOCKER_USER: ${{ env.DOCKER_USER }} | ||
DOCKER_PASSWORD: ${{ env.DOCKER_PASSWORD }} | ||
ALIYUN_USER: ${{ env.ALIYUN_USER }} | ||
ALIYUN_PASSWORD: ${{ env.ALIYUN_PASSWORD }} | ||
|
||
- uses: hhyasdf/[email protected] | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER_NEW != '' && env.ALIYUN_PASSWORD_NEW != '' }} | ||
name: sync image to all aliyun registry | ||
if: ${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' && env.ALIYUN_USER != '' && env.ALIYUN_PASSWORD != '' && env.ALIYUN_USER_NEW != '' && env.ALIYUN_PASSWORD_NEW != '' }} | ||
with: | ||
auth_file: ${{ github.workspace }}/apecloud-cd/.github/actions/image-sync-auth.yml | ||
images_file: ./image_sync_yaml_new.yml | ||
images_file: ./image_sync_yaml.yml | ||
proc: 6 | ||
retries: 5 | ||
version: v1.5.2 | ||
|
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
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
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
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
Oops, something went wrong.