Skip to content

Commit

Permalink
upload image as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
stadie authored Dec 2, 2024
1 parent a836980 commit 3da3a4f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile --tag geant_tut:$(date +%s)
- name: Build and export
uses: docker/build-push-action@v6
with:
tags: geant_tut:latest
outputs: type=docker,dest=/tmp/myimage.tar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: geant_tut
path: /tmp/myimage.tar

0 comments on commit 3da3a4f

Please sign in to comment.