From 6591ef4c6fb3813c43b5d901fc66b91a5bcccb5d Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Sat, 11 Feb 2023 12:14:57 -0600 Subject: [PATCH] dumb --- .woodpecker.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index c3dd266..0dcdb51 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -15,7 +15,8 @@ pipeline: commands: - ls -la - 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: - "liveterm-shared:/shared" when: @@ -27,11 +28,14 @@ pipeline: commands: - ls -la - pwd - - docker load /shared/image.tar.gz + - podman load < /shared/image.tar.gz - export REPO=git.mzhang.io/michael/liveterm - - export TAG=$(docker images liveterm --format "{{.Tag}}") - - docker tag liveterm:$TAG $REPO:$TAG - - docker push $REPO:$TAG + - export TAG=$(podman images liveterm --format "{{.Tag}}") + - podman tag liveterm:$TAG $REPO:$TAG + - podman login git.mzhang.io --username michael --password $DOCKER_TOKEN + - podman push $REPO:$TAG + secrets: + - DOCKER_TOKEN volumes: - "liveterm-shared:/shared" when: