Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonXon authored Oct 10, 2024
1 parent 532f22a commit 26567e8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1

steps:
- name: Checkout repository
Expand All @@ -21,21 +23,13 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to ACR
uses: docker/login-action@v2
with:
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ${{ secrets.ACR_REGISTRY }}

- name: Extract Docker metadata (tags, labels)
id: meta
uses: docker/metadata-action@v4
with:
images: |
opencsg/csghub-server
${{ secrets.ACR_REGISTRY }}/opencsg_public/csghub_server
masonxon/csghub-server
- name: Build and push Docker image
uses: docker/build-push-action@v4
Expand All @@ -44,3 +38,4 @@ jobs:
file: ./docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64

0 comments on commit 26567e8

Please sign in to comment.