Skip to content

Commit

Permalink
Merge pull request #10 from xcpcio/chore-upload-to-aliyun-shanghai-re…
Browse files Browse the repository at this point in the history
…gistry

chore: upload to aliyun shanghai registry
  • Loading branch information
Dup4 committed Nov 30, 2023
2 parents eba1b58 + e6a349c commit f16b50f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python runtime
uses: actions/setup-python@v4
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
needs: release-pypi
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Tag
run: |
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all
Expand All @@ -82,7 +82,7 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Inspect builder
run: |
Expand All @@ -93,17 +93,29 @@ jobs:
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to ALiYun Shanghai Container Registry
uses: docker/login-action@v3
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.ALIYUN_REGISTRY_USERNAME }}
password: ${{ secrets.ALIYUN_REGISTRY_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
env:
image_name: domjudge-utility
with:
push: true
context: ./
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
tags: |
docker.io/${{ secrets.DOCKERHUB_USERNAME }}/domjudge-utility:${{ env.DOCKER_TAG }}
docker.io/xcpcio/${{ env.image_name }}:latest
docker.io/xcpcio/${{ env.image_name }}:${{ env.DOCKER_TAG }}
registry.cn-shanghai.aliyuncs.com/xcpcio/${{ env.image_name }}:latest
registry.cn-shanghai.aliyuncs.com/xcpcio/${{ env.image_name }}:${{ env.DOCKER_TAG }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* [dump](./dump)
* [submit-stress-test](./submit-stress-test)
* [pdf_parser](./pdf_parser)

## License

[MIT](./LICENSE) License © 2020 - PRESENT [XCPCIO][xcpcio]
Expand Down

0 comments on commit f16b50f

Please sign in to comment.