From 20c496a89c5bdb16375304dd04e4710fe63b66ca Mon Sep 17 00:00:00 2001 From: Willy Date: Sat, 18 Feb 2023 23:40:11 +0100 Subject: [PATCH] docker push on release --- .github/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35010509..a79a9587 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -456,6 +456,10 @@ jobs: with: name: binaries path: binaries + - uses: actions/download-artifact@v3 + with: + name: docker-images + path: images - uses: ncipollo/release-action@v1 with: allowUpdates: true @@ -466,6 +470,9 @@ jobs: omitBodyDuringUpdate: true prerelease: ${{ needs.data.outputs.is_prerelease == 'true' && 'true' || ''}} updateOnlyUnreleased: true - - # TODO push docker image(s) + - name: import images + run: for file in images/*.tar; do docker load < $file; done + - run: docker image ls + - name: push all images + run: for image in $(cat images/docker-images.txt); do echo pushing $image; docker push $image; done # TODO bring back dockerhub image