Skip to content

Commit

Permalink
Store docker image as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
htwangtw committed Apr 11, 2024
1 parent 7676bb0 commit 44be37f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Upload docker artifacts
uses: actions/upload-artifact@v4
with:
name: docker
path: ${{ env.IMAGE }}
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag ${{env.USER_NAME}}/${{env.REPO_NAME}}
mkdir -p ${{ env.IMAGE }}
docker save "${{env.USER_NAME}}/${{env.REPO_NAME}}" > "${{ env.IMAGE }}/image.tar"
docker images
- name: Upload docker artifacts
uses: actions/upload-artifact@v4
with:
name: docker
path: ${{ env.IMAGE }}

docker-run:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 44be37f

Please sign in to comment.