pipeline: test: group: test image: python:${PYTHON_VERSION} pull: true environment: - POETRY_VIRTUALENVS_IN_PROJECT=true commands: - pip install poetry - poetry install - poetry run pytest nix: group: test image: nixos/nix:latest pull: true commands: - nix build --experimental-features 'nix-command flakes' - nix build -o image_link --experimental-features 'nix-command flakes' .#docker - cp image_link image when: matrix: PYTHON_VERSION: {{ cookiecutter.python_min_version}} # Still not sure about how to make flake for different python version push_image: image: quay.io/podman/stable:latest pull: true commands: - podman login -u {{ cookiecutter.git_user }} -p $GITEA_TOKEN {{ cookiecutter.gitea_url.removeprefix('https://') }} - podman load < image - podman push {{ cookiecutter.project_slug }}:latest {{ cookiecutter.gitea_url.removeprefix('https://') }}/{{ cookiecutter.git_user }}/{{ cookiecutter.project_slug }}:latest secrets: [ gitea_token ] when: matrix: PYTHON_VERSION: {{ cookiecutter.python_min_version}} # Still not sure about how to make flake for different python version matrix: PYTHON_VERSION: - {{ cookiecutter.python_min_version}}