parent
a425d58ab7
commit
6591ef4c6f
1 changed files with 9 additions and 5 deletions
|
@ -15,7 +15,8 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- ls -la
|
- ls -la
|
||||||
- pwd
|
- pwd
|
||||||
- nix --extra-experimental-features "nix-command flakes" build -o /shared/image.tar.gz .#liveterm-docker
|
- nix --extra-experimental-features "nix-command flakes" build -o image.tar.gz .#liveterm-docker
|
||||||
|
- cp $(readlink -f image.tar.gz) /shared/image.tar.gz
|
||||||
volumes:
|
volumes:
|
||||||
- "liveterm-shared:/shared"
|
- "liveterm-shared:/shared"
|
||||||
when:
|
when:
|
||||||
|
@ -27,11 +28,14 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- ls -la
|
- ls -la
|
||||||
- pwd
|
- pwd
|
||||||
- docker load /shared/image.tar.gz
|
- podman load < /shared/image.tar.gz
|
||||||
- export REPO=git.mzhang.io/michael/liveterm
|
- export REPO=git.mzhang.io/michael/liveterm
|
||||||
- export TAG=$(docker images liveterm --format "{{.Tag}}")
|
- export TAG=$(podman images liveterm --format "{{.Tag}}")
|
||||||
- docker tag liveterm:$TAG $REPO:$TAG
|
- podman tag liveterm:$TAG $REPO:$TAG
|
||||||
- docker push $REPO:$TAG
|
- podman login git.mzhang.io --username michael --password $DOCKER_TOKEN
|
||||||
|
- podman push $REPO:$TAG
|
||||||
|
secrets:
|
||||||
|
- DOCKER_TOKEN
|
||||||
volumes:
|
volumes:
|
||||||
- "liveterm-shared:/shared"
|
- "liveterm-shared:/shared"
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue