Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
jyjblrd committed Apr 14, 2024
1 parent a6e00fb commit 2fb1a8d
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,22 @@ jobs:
if: success()
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
- name: Docker build and push
if: success()
run: |
docker pull ${{ steps.prepare.outputs.docker_image }}:latest
docker build -t ${{ steps.prepare.outputs.docker_image }}:latest -f nvidia_jetson.Dockerfile .
docker push ${{ steps.prepare.outputs.docker_image }}:latest
- name: Run Buildx (push image)
if: success()
run: |
docker buildx build \
--platform ${{ steps.prepare.outputs.docker_platform }} \
--tag ${{ steps.prepare.outputs.docker_image }}:latest \
--file ./nvidia_jetson.Dockerfile \
--progress plain \
--cache-to=type=inline,mode=max \
--cache-from type=registry,ref=${{ steps.prepare.outputs.docker_image }}:latest \
--output type=image,push=true .
# - name: Run Buildx (push image)
# if: success()
# run: |
# docker buildx build \
# --platform ${{ steps.prepare.outputs.docker_platform }} \
# --tag ${{ steps.prepare.outputs.docker_image }}:latest \
# --file ./nvidia_jetson.Dockerfile \
# --progress plain \
# --cache-to=type=inline,mode=max \
# --cache-from type=registry,ref=${{ steps.prepare.outputs.docker_image }}:latest \
# --output type=image,push=true .

0 comments on commit 2fb1a8d

Please sign in to comment.