-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert dependencies changes that are making release workflow fail (#8157
) * Revert "Bump github.com/gofrs/flock from 0.8.1 to 0.12.1 (#8024)" This reverts commit 18394bd. * Revert "Bump github.com/github-release/github-release from 0.10.0 to 0.10.1 (#8107)" This reverts commit 34ab1f8. * Revert "Migrate `goformation` under `pkg/` as a local package and remove location re-write (#8153)" This reverts commit d0e5360. * Revert "Upgrade to go 1.22 (#8125)" This reverts commit ccdd44c.
- Loading branch information
Showing
4,019 changed files
with
8,462 additions
and
7,945 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
.editorconfig | ||
.dockerignore | ||
.github | ||
.gitignore | ||
*.md | ||
*.toml | ||
docs | ||
eksctl | ||
examples | ||
logo | ||
userdocs | ||
CNAME | ||
DCO | ||
LICENSE | ||
* | ||
!.git | ||
!.goreleaser* | ||
!.golangci* | ||
!.mockery.yaml | ||
!build/scripts | ||
!cmd | ||
!examples | ||
!go.* | ||
!integration | ||
!LICENSE | ||
!Makefile* | ||
!pkg | ||
!tools.go |
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,49 @@ | ||
name: Build all distros | ||
on: | ||
schedule: | ||
- cron: '0 9 * * 1-5' | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
build-all-distros: | ||
name: build all distros | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clean unncessary files to save space | ||
run: | | ||
docker rmi `docker images -q` | ||
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d | ||
sudo apt -y autoremove --purge | ||
sudo apt -y autoclean | ||
sudo apt clean | ||
rm --recursive --force "$AGENT_TOOLSDIRECTORY" | ||
df -h | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be #v1.3.1 | ||
with: | ||
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB | ||
tool-cache: false | ||
large-packages: true | ||
swap-storage: true | ||
|
||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup build environment | ||
uses: ./.github/actions/setup-build | ||
|
||
- name: Build image | ||
run: | | ||
EKSCTL_IMAGE_VERSION=${GITHUB_REF#refs/*/} make -f Makefile.docker eksctl-image | ||
- name: Generate artifacts | ||
run: | | ||
make generate-always | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf #v6.1.0 | ||
with: | ||
version: v1.24.0 | ||
args: --config=.github/.goreleaser-local.yaml --snapshot --skip=publish --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,20 @@ | ||
name: Cache Dependencies | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
cache-dependencies: | ||
name: Cache dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache Go modules | ||
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 #v4.2.0 | ||
with: | ||
path: | | ||
~/.cache/go-build/ | ||
~/go/pkg/mod/ | ||
key: go-${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
go- |
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,38 @@ | ||
name: Publish ECR eksctl-build image | ||
|
||
on: workflow_dispatch | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
build-and-push-to-registry: | ||
name: Build and push container image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup build environment | ||
uses: ./.github/actions/setup-build | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
aws-region: us-east-1 | ||
role-duration-seconds: 7200 | ||
role-session-name: eksctl-build-ecr-publisher | ||
role-to-assume: ${{ secrets.ECR_PUBLISH_ROLE_ARN }} | ||
|
||
- name: Login to Amazon ECR Public | ||
id: login-ecr-public | ||
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v1 | ||
with: | ||
registry-type: public | ||
|
||
- name: Build and push image | ||
run: | | ||
PATH=$PATH:$(go env GOPATH)/bin make -f Makefile.docker push-build-image |
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
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,15 @@ | ||
github.com/maxbrunsfeld/counterfeiter/v6 | ||
github.com/cloudflare/cfssl/cmd/[email protected] | ||
github.com/cloudflare/cfssl/cmd/[email protected] | ||
github.com/golangci/golangci-lint/cmd/golangci-lint | ||
github.com/onsi/ginkgo/v2/[email protected] | ||
github.com/vektra/mockery/v2 | ||
github.com/github-release/github-release | ||
golang.org/x/tools/cmd/stringer | ||
k8s.io/code-generator/cmd/client-gen | ||
k8s.io/code-generator/cmd/deepcopy-gen | ||
k8s.io/code-generator/cmd/defaulter-gen | ||
k8s.io/code-generator/cmd/informer-gen | ||
k8s.io/code-generator/cmd/lister-gen | ||
sigs.k8s.io/mdtoc | ||
github.com/vburenin/ifacemaker |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM public.ecr.aws/docker/library/golang:1.22.10 AS builder | ||
ARG BUILD_IMAGE=public.ecr.aws/eksctl/eksctl-build:833f4464e865a6398788bf6cbc5447967b8974b7 | ||
FROM $BUILD_IMAGE as build | ||
|
||
WORKDIR /src | ||
COPY . . | ||
|
||
RUN --mount=type=cache,target=/go/pkg/mod <<EOT | ||
go mod download | ||
EOT | ||
COPY . /src | ||
|
||
RUN <<EOT | ||
make build | ||
chown 65532 eksctl | ||
EOT | ||
RUN make test | ||
RUN make build \ | ||
&& cp ./eksctl /out/usr/local/bin/eksctl | ||
RUN make build-integration-test \ | ||
&& mkdir -p /out/usr/local/share/eksctl \ | ||
&& cp -r integration/data/*.yaml integration/scripts /out/usr/local/share/eksctl \ | ||
&& cp ./eksctl-integration-test /out/usr/local/bin/eksctl-integration-test | ||
|
||
FROM public.ecr.aws/eks-distro/kubernetes/go-runner:v0.16.4-eks-1-31-11 AS go-runner | ||
COPY --from=builder /src/eksctl /eksctl | ||
ENTRYPOINT ["/eksctl"] | ||
FROM scratch | ||
COPY --from=build /out / | ||
ENTRYPOINT ["eksctl"] |
Oops, something went wrong.