Skip to content

Commit

Permalink
fix(ci): fix docker image save/load
Browse files Browse the repository at this point in the history
I think the `>` character might have issues with yaml.
  • Loading branch information
hsheth2 committed Jan 27, 2025
1 parent ec6e41f commit 3c5d64f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/datahub-actions-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
"APP_ENV=prod-slim"
- name: Save Docker image
if: needs.setup.outputs.publish != 'true'
run: docker save ${{ steps.docker_meta_slim.outputs.tags }} > image.tar
run: docker image save -o image.tar ${{ steps.docker_meta_slim.outputs.tags }}
- name: Upload artifact
if: needs.setup.outputs.publish != 'true'
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
name: docker-image
- name: Load Docker image (if not publishing)
if: needs.setup.outputs.publish != 'true'
run: docker load < image.tar
run: docker image load -i image.tar
- name: Pull Docker image (if publishing)
if: needs.setup.outputs.publish == 'true'
run: docker pull acryldata/datahub-actions-slim:${{ needs.setup.outputs.unique_tag }}
Expand Down

0 comments on commit 3c5d64f

Please sign in to comment.