From 66a1adaa66acfa9615d5b8661e3c0320109731c3 Mon Sep 17 00:00:00 2001 From: Willy Date: Thu, 4 Jan 2024 23:15:13 +0100 Subject: [PATCH] use custom action for pushing docker images I know targetting a moving ref (main) is bad, but since I control the action, I wouldn't worry about it too much. I want to clean up some more things in my custom actions before creating a stable v1, but for now, we'll just be on the bleeding edge --- .github/workflows/build.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44bac889..be76b339 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -469,16 +469,6 @@ jobs: with: name: binaries path: binaries - - uses: actions/download-artifact@v4 - with: - name: docker-images - path: images - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ github.token }} - uses: ncipollo/release-action@v1 with: allowUpdates: true @@ -489,9 +479,8 @@ jobs: omitBodyDuringUpdate: true prerelease: ${{ fromJSON(needs.data.outputs.is_prerelease) && 'true' || 'false'}} updateOnlyUnreleased: true - - 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 + - name: push docker images + uses: jemand771/push-docker-artifact@main + with: + GITHUB_TOKEN: ${{ github.token }} # TODO bring back dockerhub image