e2e-backups-cron #51
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
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | |
# | |
# Generated on 2024-04-19T08:33:46Z by kres add13d7. | |
name: e2e-backups-cron | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
"on": | |
schedule: | |
- cron: 30 1 * * * | |
jobs: | |
default: | |
runs-on: | |
- self-hosted | |
- omni | |
services: | |
buildkitd: | |
image: moby/buildkit:v0.13.1 | |
options: --privileged | |
ports: | |
- 1234:1234 | |
volumes: | |
- /var/lib/buildkit/${{ github.repository }}:/var/lib/buildkit | |
- /usr/etc/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Unshallow | |
run: | | |
git fetch --prune --unshallow | |
- name: Set up Docker Buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
driver: remote | |
endpoint: tcp://127.0.0.1:1234 | |
timeout-minutes: 10 | |
- name: Mask secrets | |
run: | | |
echo -e "$(sops -d .secrets.yaml | yq '.secrets | to_entries[] | "::add-mask::" + .value')" | |
- name: Set secrets for job | |
run: | | |
sops -d .secrets.yaml | yq '.secrets | to_entries[] | .key + "=" + .value' >> "$GITHUB_ENV" | |
- name: run-integration-test | |
env: | |
INTEGRATION_RUN_E2E_TEST: "false" | |
INTEGRATION_TEST_ARGS: --test.run CleanState/|EtcdBackupAndRestore | |
WITH_DEBUG: "true" | |
run: | | |
sudo -E make run-integration-test | |
- name: save-talos-logs-artifacts | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: talos-logs | |
path: ~/.talos/clusters/**/*.log | |
retention-days: "5" |