Skip to content

Commit

Permalink
Fixed github actions always warning for deprecated Node.js (#719)
Browse files Browse the repository at this point in the history
Co-authored-by: mason <[email protected]>
  • Loading branch information
MasonXon and mason authored Oct 30, 2024
1 parent f28661b commit 80240bf
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,43 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1

steps:
- name: Checkout repository
uses: actions/checkout@v4

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to ACR
uses: docker/login-action@v2
uses: docker/login-action@v3
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
uses: docker/metadata-action@v5
with:
images: |
opencsg/csghub-portal
${{ secrets.ACR_REGISTRY }}/opencsg_public/csghub_portal
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64

0 comments on commit 80240bf

Please sign in to comment.