Skip to content

Commit

Permalink
#8082: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed Jun 5, 2024
1 parent 6a424e2 commit fb349c1
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/build-docker-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,55 @@ on:

jobs:
build-docker-image:
permissions: write-all
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
CONFIG: ci
SILENT: 0
VERBOSE: 1
TT_METAL_DOCKER_IMAGE: ubuntu-20.04-amd64
TT_METAL_DOCKER_IMAGE_TAG: latest
TT_METAL_DOCKER_IMAGE_TAG: ubuntu-20.04-amd64:latest
environment: dev
runs-on: build
steps:
- name: Prepare
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

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
./scripts/docker/build_docker_image.sh ${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
- name: Tag Docker image
run: |
docker tag ${{ env.TT_METAL_DOCKER_IMAGE_TAG }} ghcr.io/${{ github.repository_owner }}/${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository_owner }}/${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: https://ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Build Docker image
# run: |
# ./scripts/docker/build_docker_image.sh ${{ env.TT_METAL_DOCKER_IMAGE }}:${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
- 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: ghcr.io/${{ github.repository }}/${{ env.TT_METAL_DOCKER_IMAGE }}:latest
# - 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: 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 fb349c1

Please sign in to comment.