Skip to content

Commit

Permalink
Refactor standard.yml to add support for pushing Docker images to Ten…
Browse files Browse the repository at this point in the history
…cent Cloud Registry
  • Loading branch information
arloor committed Nov 15, 2024
1 parent da66ab3 commit 6190405
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6190405

Please sign in to comment.