Skip to content

Commit

Permalink
add ali cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
956237586 committed Oct 26, 2024
1 parent 88958de commit 063c8a2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/workspace-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,19 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Login to ACR
uses: aliyun/acr-login@v1
with:
login-server: https://registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build and push image
env:
ALI_IMAGE_NAME: registry.cn-hangzhou.aliyuncs.com/hylstudio/workspace
IMAGE_TAG: ${{ steps.meta.outputs.tags }}
run: |
docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} $ALI_IMAGE_NAME
docker push $ALI_IMAGE_NAME:$IMAGE_TAG
# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
Expand Down

0 comments on commit 063c8a2

Please sign in to comment.