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:
|
with:
|
||||||
name: binaries
|
name: binaries
|
||||||
path: 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
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
@ -489,9 +479,8 @@ jobs:
|
||||||
omitBodyDuringUpdate: true
|
omitBodyDuringUpdate: true
|
||||||
prerelease: ${{ fromJSON(needs.data.outputs.is_prerelease) && 'true' || 'false'}}
|
prerelease: ${{ fromJSON(needs.data.outputs.is_prerelease) && 'true' || 'false'}}
|
||||||
updateOnlyUnreleased: true
|
updateOnlyUnreleased: true
|
||||||
- name: import images
|
- name: push docker images
|
||||||
run: for file in images/*.tar; do docker load < $file; done
|
uses: jemand771/push-docker-artifact@main
|
||||||
- run: docker image ls
|
with:
|
||||||
- name: push all images
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
run: for image in $(cat images/docker-images.txt); do echo pushing $image; docker push $image; done
|
|
||||||
# TODO bring back dockerhub image
|
# TODO bring back dockerhub image
|
||||||
|
|
Loading…
Reference in New Issue