Skip to content

Commit

Permalink
try building the base image, pushing, and saving
Browse files Browse the repository at this point in the history
  • Loading branch information
4141done committed Jan 10, 2024
1 parent 9944209 commit 4cc8a93
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ jobs:
context: .
tags: localhost:5000/nginx-s3-gateway , localhost:5000/nginx-s3-gateway:oss
push: true
# Since the above build pushes to the registry only now we load it locally so we can save it
# It's not possible with push and save in one go.
- name: Load image oss
run: |
docker pull localhost:5000/nginx-s3-gateway
docker tag localhost:5000/nginx-s3-gateway nginx-s3-gateway
- name: save image for upload
run: |
docker save localhost:5000/nginx-s3-gateway > oss.tar
docker save nginx-s3-gateway > oss.tar
- name: Upload artifact - oss
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 4cc8a93

Please sign in to comment.