-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: new dev/testing environment (#671)
- Add a new development environment based on [github.com/hetznercloud/kubernetes-dev-env](https://github.com/hetznercloud/kubernetes-dev-env) - Refactor the Robot test server to be re-installed once a week and use `overlayrootfs` for clean disk on every run --------- Co-authored-by: Jonas Lammler <jonas.lammler@hetzner-cloud.de>
- Loading branch information
Showing
27 changed files
with
698 additions
and
614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Robot | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- .github/workflows/robot.yml | ||
- dev/robot/** | ||
schedule: | ||
# https://crontab.guru/#30_12_*_*_1 | ||
- cron: "30 12 * * 1" | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
|
||
concurrency: robot | ||
environment: e2e-robot | ||
|
||
defaults: | ||
run: | ||
working-directory: dev/robot | ||
|
||
env: | ||
PY_COLORS: true | ||
ANSIBLE_FORCE_COLOR: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install robot server | ||
env: | ||
ROBOT_USER: ${{ secrets.ROBOT_USER }} | ||
ROBOT_PASSWORD: ${{ secrets.ROBOT_PASSWORD }} | ||
ROBOT_SSH_KEY: ${{ secrets.ROBOT_SSH_KEY }} | ||
run: | | ||
ansible-galaxy install -r requirements.yml | ||
dev/robot/with-ssh-agent ansible-playbook -vv install.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.