-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into kustomize
- Loading branch information
Showing
55 changed files
with
1,508 additions
and
1,412 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,18 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
gomod-deps: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
actions-deps: | ||
patterns: | ||
- "*" |
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 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,60 @@ | ||
name: Cache Images | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/docker.yml' | ||
|
||
jobs: | ||
cache-images: | ||
strategy: | ||
matrix: | ||
image: | ||
- rancher/k3s:v1.31.2-k3s1 | ||
- rancher/k3s:v1.30.6-k3s1 | ||
- rancher/k3s:v1.29.10-k3s1 | ||
- rancher/k3s:v1.28.15-k3s1 | ||
- rancher/k3s:v1.27.16-k3s1 | ||
- rancher/k3s:v1.26.15-k3s1 | ||
- rancher/k3s:v1.25.16-k3s4 | ||
- registry:2 | ||
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.actor != 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{github.actor}} | ||
password: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Cache images | ||
run: | | ||
new_image_tag="ghcr.io/gavinbunney/terraform-provider-kubectl/testacc-$(echo '${{matrix.image}}' | sed 's/\//-/')" | ||
echo "Caching ${{matrix.image}} as $new_image_tag" | ||
docker rmi ${{matrix.image}} --force | ||
docker pull ${{matrix.image}} --platform linux/amd64 | ||
docker tag ${{matrix.image}} $new_image_tag-amd64 | ||
docker push $new_image_tag-amd64 | ||
docker tag ${{matrix.image}} $new_image_tag-x86_64 | ||
docker push $new_image_tag-x86_64 | ||
docker rmi ${{matrix.image}} --force | ||
docker pull ${{matrix.image}} --platform linux/arm64 | ||
docker tag ${{matrix.image}} $new_image_tag-arm64 | ||
docker push $new_image_tag-arm64 |
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 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 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,30 @@ | ||
run: | ||
timeout: 5m | ||
output: | ||
formats: | ||
- format: line-number | ||
path: stderr | ||
- format: checkstyle | ||
path: ./build/lint-report-checkstyle.xml | ||
- format: html | ||
path: ./build/lint-report.html | ||
|
||
linters: | ||
enable: | ||
# default linters | ||
#- errcheck | ||
#- gosimple | ||
#- govet | ||
#- ineffassign | ||
#- staticcheck | ||
#- unused | ||
|
||
# additional enabled | ||
#- bodyclose | ||
#- goconst | ||
#- gosec | ||
#- misspell | ||
- prealloc | ||
|
||
disable-all: true | ||
|
Oops, something went wrong.