-
Notifications
You must be signed in to change notification settings - Fork 21
52 lines (45 loc) · 1.45 KB
/
flux-update-scheduled-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Flux Update Schedule Check
on:
schedule:
- cron: '0 12 * * SUN'
workflow_dispatch: {}
jobs:
flux-schedule-check:
if: github.ref == 'refs/heads/main'
name: Flux Update Schedule Check
runs-on:
- self-hosted
- small
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout kommander code
uses: actions/checkout@v4
with:
repository: mesosphere/kommander
path: kommander
token: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
workdir: 'kommander'
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }}
- name: Install NIX
uses: cachix/install-nix-action@V28
- name: Install devbox
uses: jetify-com/[email protected]
with:
enable-cache: true
skip-nix-installation: true
- name: Check for Flux update
env:
GH_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
run: devbox run -- "make KOMMANDER_REPO_PATH=${GITHUB_WORKSPACE}/kommander make flux-update"