forked from cloud-bulldozer/benchmark-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c8ea45
commit 1064a65
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Push Test Images | ||
on: | ||
workflow_run: | ||
workflows: ["Build Images"] | ||
types: [completed] | ||
jobs: | ||
push-cfs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install podman | ||
run: apt update && apt install -y podman | ||
- name: Download all built images | ||
id: download | ||
uses: actions/download-artifact@v2 | ||
- name: Display directory structure | ||
run: echo ${{ steps.download.outputs.download-path }} | ||
- name: Login to quay.io | ||
run: >- | ||
podman login --password ${{ secrets.REGISTRY_PASSWORD }} | ||
--username ${{ secrets.REGISTRY_AUTH_USER }} quay.io | ||
- name: Load and push images | ||
run: | | ||
image_archives=(`find ${{ steps.download.outputs.download-path }} -name '*.tar'`) | ||
for image in ${image_archives[*]} | ||
do | ||
image_name=`echo $image | awk -F "/" '{print $(NF-1)}'` | ||
podman load -i $image | ||
podman image push quay.io/${{ secrets.REGISTRY_USER }}/$image_name | ||
done |