[CI] change to quay.io (#102)

change docker registry to quay

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2025-02-19 17:04:46 +08:00
committed by GitHub
parent fafd70e91c
commit cff03a4913
8 changed files with 26 additions and 29 deletions

View File

@@ -39,25 +39,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Prepare
run: |
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
echo "REPO_OWNER=${REPO_OWNER}" >> "$GITHUB_ENV"
- name: Print
run: |
echo "REPO_OWNER:""${REPO_OWNER}"
lscpu
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# TODO(yikun): add more hub image and a note on release policy for container image
# The REPO_OWNER will be:
# - `vllm-project` in usptream repo
# - lowercase github user in your fork repo
images: |
ghcr.io/${{ env.REPO_OWNER }}/vllm-ascend
quay.io/ascend/vllm-ascend
# Note for test case
# https://github.com/marketplace/actions/docker-metadata-action#typeref
# 1. branch job pulish per main/*-dev branch commits
@@ -87,12 +79,13 @@ jobs:
- name: Build - Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Publish - Login to GitHub Container Registry
uses: docker/login-action@v2
- name: Publish - Login to Quay Container Registry
if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: quay.io
username: ${{ vars.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
@@ -104,3 +97,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
build-args: |
PIP_INDEX_URL=https://pypi.org/simple