mirror of https://github.com/statping/statping
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 edgepull/1118/head
parent
07e9c8d79c
commit
66a1adaa66
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue