matrix: RUST: [stable] pipeline: test: image: rust environment: [CARGO_TERM_COLOR=always] commands: - rustup default $RUST - cargo check - cargo test build-docker-image: image: nixos/nix commands: - ls -la - pwd - 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: # event: tag branch: master deploy: image: podman-image commands: - ls -la - pwd - podman load < /shared/image.tar.gz - export REPO=git.mzhang.io/michael/liveterm - 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: # event: tag branch: master