Skip to content

Commit 876ad06

Browse files
committed
Merge branch 'ln/upstream-main-aws-no-v2' into ln/upstream-merge
2 parents b0ba068 + f843025 commit 876ad06

File tree

1,053 files changed

+72154
-18460
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,053 files changed

+72154
-18460
lines changed

.github/workflows/images.yaml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ jobs:
3636

3737
include:
3838
- image: executor
39-
dockerfile: ./deploy/Dockerfile
39+
target: kaniko-executor
4040
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
4141
image-name: gcr.io/kaniko-project/executor
4242
tag: ${{ github.sha }}
4343
release-tag: latest
4444

4545
- image: executor-debug
46-
dockerfile: ./deploy/Dockerfile_debug
46+
target: kaniko-debug
4747
platforms: linux/amd64,linux/arm64,linux/s390x
4848
image-name: gcr.io/kaniko-project/executor
4949
tag: ${{ github.sha }}-debug
5050
release-tag: debug
5151

5252
- image: executor-slim
53-
dockerfile: ./deploy/Dockerfile_slim
53+
target: kaniko-slim
5454
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
5555
image-name: gcr.io/kaniko-project/executor
5656
tag: ${{ github.sha }}-slim
5757
release-tag: slim
5858

5959
- image: warmer
60-
dockerfile: ./deploy/Dockerfile_warmer
60+
target: kaniko-warmer
6161
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
6262
image-name: gcr.io/kaniko-project/warmer
6363
tag: ${{ github.sha }}
@@ -68,35 +68,48 @@ jobs:
6868

6969
# Setup auth if not a PR.
7070
- if: github.event_name != 'pull_request'
71-
uses: google-github-actions/setup-gcloud@04141d8a7edfc8c679682f23e7bbbe05cbe32bb3 # v0.5.1
71+
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
7272
with:
73-
service_account_key: ${{ secrets.GCR_DEVOPS_SERVICE_ACCOUNT_KEY }}
74-
project_id: kaniko-project
75-
export_default_credentials: true
73+
credentials_json: '${{ secrets.GCR_DEVOPS_SERVICE_ACCOUNT_KEY }}'
74+
export_environment_variables: true
75+
create_credentials_file: true
76+
- if: github.event_name != 'pull_request'
77+
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b # v1.1.1
7678
- if: github.event_name != 'pull_request'
7779
run: gcloud auth configure-docker
7880

81+
# Don't build for all platforms on PRs.
82+
- id: platforms
83+
run: |
84+
event="${{ github.event_name }}"
85+
if [[ "$event" == "pull_request" ]]; then
86+
echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
87+
else
88+
platforms="${{ matrix.platforms }}"
89+
echo "platforms=${platforms}" >> $GITHUB_OUTPUT
90+
fi
7991
# Build and push with Docker.
80-
- uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # v1
92+
- uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
8193
with:
8294
platforms: ${{ matrix.platforms }}
83-
- uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # v1
84-
- uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3
95+
- uses: docker/setup-buildx-action@16c0bc4a6e6ada2cfd8afd41d22d95379cf7c32a # v1
96+
- uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
8597
id: build-and-push
8698
with:
8799
context: .
88-
file: ${{ matrix.dockerfile }}
89-
platforms: ${{ matrix.platforms }}
100+
file: ./deploy/Dockerfile
101+
platforms: ${{ steps.platforms.outputs.platforms }}
90102
push: ${{ github.event_name != 'pull_request' }} # Only push if not a PR.
91103
tags: ${{ matrix.image-name }}:${{ matrix.tag }}
92104
no-cache-filters: certs
93105
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache
94106
cache-from: type=gha
95107
cache-to: type=gha,mode=max
108+
target: ${{ matrix.target }}
96109

97110
# Sign images if not a PR.
98111
- if: github.event_name != 'pull_request'
99-
uses: sigstore/cosign-installer@c3667d99424e7e6047999fb6246c0da843953c65 # v3.0.1
112+
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3.1.1
100113
- if: github.event_name != 'pull_request'
101114
run: |
102115
cosign sign --yes \
@@ -107,7 +120,7 @@ jobs:
107120
108121
# If a tag push, use crane to add more tags.
109122
- if: startsWith(github.ref, 'refs/tags/v')
110-
uses: imjasonh/setup-crane@5146f708a817ea23476677995bf2133943b9be0b # v0.1
123+
uses: imjasonh/setup-crane@00c9e93efa4e1138c9a7a5c594acd6c75a2fbf0c # v0.3
111124
- if: startsWith(github.ref, 'refs/tags/v')
112125
name: Apply release tags
113126
run: |

.github/workflows/integration-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
- k8s-executor-build-push integration-test-k8s
2929

3030
steps:
31-
- uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v3
31+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
3232
with:
3333
go-version: '1.20'
3434
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
35-
- uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # v1
35+
- uses: docker/setup-buildx-action@16c0bc4a6e6ada2cfd8afd41d22d95379cf7c32a # v1
3636

3737
- run: make install-container-diff k3s-setup
3838
- run: make ${{ matrix.make-target }}

.github/workflows/scorecards-analysis.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
tests:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v3
19+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.01
2020
with:
2121
go-version: '1.20'
2222
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ BUILD.bazel
55
.idea/**
66
*.iml
77
.vagrant
8+
.vscode/

0 commit comments

Comments
 (0)