Skip to content

Commit

Permalink
feat: test login acr
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Sep 11, 2023
1 parent b630eb2 commit 16764b8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-publish-acr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Publish Docker Images Demo

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:

ocap-api:

runs-on: ubuntu-latest

steps:
- uses: aliyun/acr-login@v1
with:
login-server: https://registry.cn-hangzhou.aliyuncs.com
username: "${{ secrets.ACR_USERNAME }}"
password: "${{ secrets.ACR_PASSWORD }}"

- name: Push to Aliyun Registry
run: |
docker pull ghcr.io/meta-d/ocap-api-demo:latest
docker tag ghcr.io/meta-d/ocap-api-demo:latest registry.cn-hangzhou.aliyuncs.com/metad/ocap-api-demo:latest
docker push registry.cn-hangzhou.aliyuncs.com/metad/ocap-api-demo:latest

0 comments on commit 16764b8

Please sign in to comment.