From d786f62b78539a566e26d96f5e4771ff3a967e94 Mon Sep 17 00:00:00 2001 From: w7years Date: Fri, 25 Oct 2024 22:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(.github/workflows/docker-i?= =?UTF-8?q?mage.yml):=20update=20image=20tags=20to=20use=20format=20functi?= =?UTF-8?q?on=20for=20repository=20owner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3979ac4..ac1eeaf 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -60,13 +60,7 @@ jobs: run: make lint - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: | - ghcr.io/${{ format('{0}', github.repository_owner) }}/ai-api-proxy:latest - ghcr.io/${{ format('{0}', github.repository_owner) }}/ai-api-proxy:${{ github.sha }} - labels: | - org.opencontainers.image.source=https://github.com/${{ github.repository }} - org.opencontainers.image.revision=${{ github.sha }} + run: make docker-push + env: + VERSION: ${{ github.sha }} + GITHUB_USERNAME: ${{ github.actor }}