Skip to content

Commit

Permalink
#8082: test with buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed Jun 5, 2024
1 parent 1a1dd50 commit f5c74c0
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/build-docker-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,22 @@ jobs:
id: prep
run: echo "::set-output name=tag::$(echo ${GITHUB_REF#refs/heads/} | tr / -)"
- uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0


- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/${{ env.TT_METAL_DOCKER_IMAGE }}:latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v5
with:
context: .
file: ./dockerfile/ubuntu-20.04-amd64.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ghcr.io/${{ github.repository }}/${{ env.TT_METAL_DOCKER_IMAGE }}:latest

# - name: Push Docker image to GitHub Container Registry
# run: |
Expand Down

0 comments on commit f5c74c0

Please sign in to comment.