From 6190405d36fd021dada952d5409a3337975e8011 Mon Sep 17 00:00:00 2001 From: arloor Date: Sat, 16 Nov 2024 01:54:43 +0800 Subject: [PATCH] Refactor standard.yml to add support for pushing Docker images to Tencent Cloud Registry --- .github/workflows/standard.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/standard.yml b/.github/workflows/standard.yml index 3430c22..a8c5096 100644 --- a/.github/workflows/standard.yml +++ b/.github/workflows/standard.yml @@ -30,10 +30,13 @@ jobs: run: | ls -lh ${{ steps.build.outputs.release_dir }} dockerfile="Dockerfile.static" - podman build -f ${dockerfile} . -t docker.io/arloor/rust_http_proxy:latest --build-arg TARGET_PATH=/x86_64-unknown-linux-gnu + podman build -f ${dockerfile} . -t docker.io/arloor/rust_http_proxy:latest -t ccr.ccs.tencentyun.com/arloor/rust_http_proxy:latest --build-arg TARGET_PATH=/x86_64-unknown-linux-gnu podman login docker.io -u arloor -p ${{ secrets.REGISTRY_PASSWORD }} # podman push docker.io/arloor/rust_http_proxy:${{ steps.vars.outputs.sha_short }} podman push docker.io/arloor/rust_http_proxy:latest + + docker login ccr.ccs.tencentyun.com --username=1293181335 -p ${{ secrets.CCR_REGISTRY_PASSWORD }} + podman push ccr.ccs.tencentyun.com/arloor/rust_http_proxy:latest - name: create master release if: github.event_name == 'push' && github.ref == 'refs/heads/master' env: