Creates and runs "bootstrapping" roles against a new Hetzner Cloud server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
579 B

----
kind: pipeline
name: default
steps:
- name: integration test
image: python:3.10-buster
environment:
REMOTE_USER: molecule
HCLOUD_TOKEN:
from_secret: HCLOUD_TOKEN
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- apt update && apt install -y pwgen curl
- curl -fsSL https://get.docker.com | bash
- mkdir -p /root/.ansible/roles && ln -sr . /root/.ansible/roles/autonomic.new-hetzner
- export INSTANCE_UUID=$(pwgen 8 1)
- pip install -r requirements.txt
- molecule test