Skip to content

Commit ce76eff

Browse files
authored
Update build.yml
1 parent efe35be commit ce76eff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
username: ${{ github.actor }}
4141
password: ${{ secrets.GITHUB_TOKEN }}
4242

43+
- name: Login to ACR
44+
uses: docker/login-action@v2
45+
with:
46+
registry: registry.cn-guangzhou.aliyuncs.com
47+
username: ${{ secrets.ALIYUN_USER }}
48+
password: ${{ secrets.ALIYUN_PASS }}
49+
4350
- name: Docker Push
4451
uses: docker/build-push-action@v5
4552
if: github.event_name == 'push'
@@ -50,10 +57,12 @@ jobs:
5057
tags: |
5158
ghcr.io/scutrobotlab/rm-schedule:latest
5259
ghcr.io/scutrobotlab/rm-schedule:${{ github.sha }}
60+
registry.cn-guangzhou.aliyuncs.com/scutrobot/rm-schedule:latest
61+
registry.cn-guangzhou.aliyuncs.com/scutrobot/rm-schedule:${{ github.sha }}
5362
labels: |
5463
org.opencontainers.image.source=https://github.com/scutrobotlab/rm-schedule
5564
org.opencontainers.image.revision=${{ github.sha }}
5665
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
5766
org.opencontainers.image.title=rm-schedule
5867
cache-from: type=gha
59-
cache-to: type=gha,mode=max
68+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)