-
-
Notifications
You must be signed in to change notification settings - Fork 66
34 lines (29 loc) · 1.11 KB
/
docker-aliyun-midjourney-proxy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Alibaba Cloud Registry Docker Image CI
on:
release:
types: [published]
jobs:
push_to_acr:
name: Push Docker image to Alibaba Cloud Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Alibaba Cloud Registry
run: |
echo "${{ secrets.ACR_PASSWORD }}" | docker login --username="${{ secrets.ACR_USERNAME }}" --password-stdin ${{ secrets.ACR_REGISTRY }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v1
with:
images: ${{ secrets.ACR_REGISTRY }}/trueai-org/midjourney-proxy
- name: Build and push Docker image to Alibaba Cloud Registry
uses: docker/build-push-action@v2
with:
context: .
file: ./src/Midjourney.API/Dockerfile
push: true
tags: |
${{ secrets.ACR_REGISTRY }}/trueai-org/midjourney-proxy:${{ steps.meta.outputs.version }}
${{ secrets.ACR_REGISTRY }}/trueai-org/midjourney-proxy:latest
labels: ${{ steps.meta.outputs.labels }}