diff --git a/.github/workflows/workspace-ubuntu.yml b/.github/workflows/workspace-ubuntu.yml index 85e1f68..626ea50 100644 --- a/.github/workflows/workspace-ubuntu.yml +++ b/.github/workflows/workspace-ubuntu.yml @@ -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