Skip to content

Commit

Permalink
feat: renovate aqua config file and move scripts to .github
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Dec 20, 2023
1 parent a18f9c6 commit 139f07f
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 21 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
":semanticCommits",
":skipStatusChecks",
":timezone(America/New_York)",
"github>aquaproj/aqua-renovate-config:file#1.13.0(.github/aqua.yaml)",
"github>onedr0p/home-ops//.github/renovate/allowedVersions.json5",
"github>onedr0p/home-ops//.github/renovate/autoMerge.json5",
"github>onedr0p/home-ops//.github/renovate/clusters.json5",
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/aqua-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: ["main"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths: ["kubernetes/**"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flux-hr-image-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths: ["kubernetes/**/helmrelease.yaml"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand All @@ -94,7 +94,7 @@ jobs:
- name: Extract Images from Helm Release
id: extract-images
run: |
images=$(npx zx ./.github/workflows/resources/extract-images.mjs --kubernetes-dir "${{ env.KUBERNETES_DIR }}" --helmrelease "${{ matrix.files }}")
images=$(npx zx ./.github/scripts/extract-images.mjs --kubernetes-dir "${{ env.KUBERNETES_DIR }}" --helmrelease "${{ matrix.files }}")
echo "images=${images}" >> $GITHUB_OUTPUT
echo "${images}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flux-hr-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
paths: ["kubernetes/**/helmrelease.yaml"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/flux-ks-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ on:
paths: ["kubernetes/storage/**"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
WORKFLOW_RESOURCE_DIR: ./.github/workflows/resources

jobs:
sync:
Expand Down Expand Up @@ -43,7 +42,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/kubeconform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ on:
paths: ["kubernetes/**"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
WORKFLOW_RESOURCE_DIR: ./.github/workflows/resources

jobs:
kubeconform:
Expand Down Expand Up @@ -43,7 +42,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand All @@ -57,4 +56,4 @@ jobs:

- name: Run kubeconform
shell: bash
run: bash ${{ env.WORKFLOW_RESOURCE_DIR }}/kubeconform.sh ${{ matrix.path }}
run: bash ./.github/scripts/kubeconform.sh ${{ matrix.path }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
paths: [".github/workflows/publish-schemas.yaml"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ on:
paths: ["terraform/**"]

env:
AQUA_CONFIG: ./.github/workflows/resources/aqua.yaml
AQUA_CONFIG: ./.github/aqua.yaml
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
WORKFLOW_RESOURCE_DIR: ./.github/workflows/resources

jobs:
publish-terraform:
Expand Down Expand Up @@ -43,7 +42,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/workflows/resources/aqua.yaml')}}
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('./.github/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
Expand Down

0 comments on commit 139f07f

Please sign in to comment.