Skip to content

Merge branch 'SunoAI-API:main' into main #4

Merge branch 'SunoAI-API:main' into main

Merge branch 'SunoAI-API:main' into main #4

name: Alibaba Cloud Registry Docker Image CI
on:
push:
branches: [main]
pull_request:
branches: [main]
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 }}/houhou/suno-api
- name: Build and push Docker image to Alibaba Cloud Registry
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.ACR_REGISTRY }}/houhou/suno-api:latest
labels: ${{ steps.meta.outputs.labels }}