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
pull/1118/head
Willy 2024-01-04 23:15:13 +01:00
parent 07e9c8d79c
commit 66a1adaa66
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 4 additions and 15 deletions

View File

@ -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