Compare commits

..

22 Commits

Author SHA1 Message Date
Alex Jones
25bc7cf314 chore: updated actor for login
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 19:59:38 +01:00
Alex Jones
8379db80c4 chore: updated actor for login
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 19:47:16 +01:00
Alex Jones
6d1d705fa3 chore: updated actor for login
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 19:02:08 +01:00
Alex Jones
76d23e22c4 chore: updated actor for login
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:40:47 +01:00
Alex Jones
cce811f335 chore: updated actor for login
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
bd3bfa1736 chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
d29cf096dd chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
05ab289c16 chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
52aa5da475 chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
bffd808aef chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
6262ca6692 chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
7544b4df54 chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
6613e2a93a chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
afd3790aab chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
82d415bfcd chore: removed digest
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
2908dd2558 chore: testing splitting job across runners
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
ce9239eff3 chore: testing splitting job across runners
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:39 +01:00
Alex Jones
d84a7f1fd2 chore: setting up build system fixes
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:37 +01:00
Alex Jones
10c21d4f6d chore: setting up build system fixes
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:39:34 +01:00
Alex Jones
a63d1cc540 chore: setting up build system fixes
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:38:16 +01:00
Alex Jones
5f9edab980 chore: setting up build system fixes
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:38:16 +01:00
Alex Jones
5d8c75a0bd chore: setting up build system fixes
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2025-04-07 18:38:16 +01:00
5 changed files with 104 additions and 63 deletions

View File

@@ -8,7 +8,7 @@ on:
pull_request:
branches:
- 'main'
- fix/build-branch
- fix/build-system-v2
- '[0-9]+.[1-9][0-9]*.x'
paths-ignore:
- "**.md"
@@ -36,7 +36,7 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@v4
- name: Extract branch name
id: extract_branch
@@ -56,23 +56,95 @@ jobs:
NON_FORKED_AND_NON_ROBOT_RUN=${{ ( github.actor != 'renovate[bot]' && github.actor != 'dependabot[bot]' ) && ( github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository ) }}
echo "NON_FORKED_AND_NON_ROBOT_RUN=$NON_FORKED_AND_NON_ROBOT_RUN" >> "$GITHUB_OUTPUT"
build-and-push:
name: Build and Push Multi-arch Image
build:
name: Build for ${{ matrix.platform }}
needs: prepare_ci_run
runs-on: ubuntu-latest
if: ${{ needs.prepare_ci_run.outputs.NON_FORKED_AND_NON_ROBOT_RUN == 'true' }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
# - linux/arm64
env:
DATETIME: ${{ needs.prepare_ci_run.outputs.DATETIME }}
BUILD_TIME: ${{ needs.prepare_ci_run.outputs.BUILD_TIME }}
GIT_SHA: ${{ needs.prepare_ci_run.outputs.GIT_SHA }}
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@v4
- name: Set platform pair and arch
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
arch=${platform##*/}
echo "ARCH=${arch}" >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.K8SGPT_BOT_SECRET }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Debug image tags
run: |
echo "Pushing tag: ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}"
- name: Build and push the image
id: build
if: ${{ needs.prepare_ci_run.outputs.NON_FORKED_AND_NON_ROBOT_RUN == 'true' }}
uses: docker/build-push-action@v6
with:
context: .
file: ./container/Dockerfile
platforms: ${{ matrix.platform }}
target: production
build-args: |
GIT_HASH=${{ env.GIT_SHA }}
RELEASE_VERSION=dev-${{ env.DATETIME }}
BUILD_TIME=${{ env.BUILD_TIME }}
tags: |
${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}-${{ matrix.arch }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }}
outputs: type=image,push=true
merge:
name: Create and Push Manifest List
needs: [build, prepare_ci_run]
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.K8SGPT_BOT_SECRET }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Debug DATETIME
run: echo "DATETIME=${{ needs.prepare_ci_run.outputs.DATETIME }}"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
@@ -80,35 +152,17 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=dev-${{ env.DATETIME }}
type=raw,value=dev-${{ needs.prepare_ci_run.outputs.DATETIME }}
- name: Login to GitHub Container Registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.K8SGPT_BOT_SECRET }}
- name: Set up QEMU
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
- name: Build and push multi-arch image
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
with:
context: .
file: ./container/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
target: production
build-args: |
GIT_HASH=${{ env.GIT_SHA }}
RELEASE_VERSION=dev-${{ env.DATETIME }}
BUILD_TIME=${{ env.BUILD_TIME }}
tags: |
${{ env.REGISTRY_IMAGE }}:${{ env.DATETIME }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }}
- name: Create manifest list and push
run: |
docker manifest create ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }} \
${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}-amd64
- name: Annotate manifest
run: |
docker manifest annotate ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }} \
${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}-amd64 \
--arch amd64
- name: Push manifest
run: |
docker manifest push ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}

View File

@@ -73,8 +73,8 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.K8SGPT_BOT_SECRET }}
# - name: Update new version in krew-index
# uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47
build-container:
if: needs.release-please.outputs.releases_created == 'true'
@@ -115,6 +115,8 @@ jobs:
tags: |
${{ env.IMAGE_TAG }}
builder: ${{ steps.buildx.outputs.name }}
secrets: |
GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }}
push: true
cache-from: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }}
cache-to: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }}

View File

@@ -1 +1 @@
{".":"0.4.9"}
{".":"0.4.7"}

View File

@@ -1,20 +1,5 @@
# Changelog
## [0.4.9](https://github.com/k8sgpt-ai/k8sgpt/compare/v0.4.8...v0.4.9) (2025-04-08)
### Other
* **deps:** pin dependencies ([#1440](https://github.com/k8sgpt-ai/k8sgpt/issues/1440)) ([a5574ee](https://github.com/k8sgpt-ai/k8sgpt/commit/a5574ee49d530960a515c419f4875cf02cb36fb3))
* fixing ([#1437](https://github.com/k8sgpt-ai/k8sgpt/issues/1437)) ([f68ff0e](https://github.com/k8sgpt-ai/k8sgpt/commit/f68ff0efee9bad5f8368c83800611fa9acbc53d7))
## [0.4.8](https://github.com/k8sgpt-ai/k8sgpt/compare/v0.4.7...v0.4.8) (2025-04-07)
### Other
* removed krew release ([#1434](https://github.com/k8sgpt-ai/k8sgpt/issues/1434)) ([39ae2aa](https://github.com/k8sgpt-ai/k8sgpt/commit/39ae2aa6351d6a77e0b45ad15b0d10b86a33f3be))
## [0.4.7](https://github.com/k8sgpt-ai/k8sgpt/compare/v0.4.6...v0.4.7) (2025-04-07)

View File

@@ -62,7 +62,7 @@ brew install k8sgpt
<!---x-release-please-start-version-->
```
sudo rpm -ivh https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.9/k8sgpt_386.rpm
sudo rpm -ivh https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.7/k8sgpt_386.rpm
```
<!---x-release-please-end-->
@@ -70,7 +70,7 @@ brew install k8sgpt
<!---x-release-please-start-version-->
```
sudo rpm -ivh https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.9/k8sgpt_amd64.rpm
sudo rpm -ivh https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.7/k8sgpt_amd64.rpm
```
<!---x-release-please-end-->
</details>
@@ -83,7 +83,7 @@ brew install k8sgpt
<!---x-release-please-start-version-->
```
curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.9/k8sgpt_386.deb
curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.7/k8sgpt_386.deb
sudo dpkg -i k8sgpt_386.deb
```
@@ -94,7 +94,7 @@ sudo dpkg -i k8sgpt_386.deb
<!---x-release-please-start-version-->
```
curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.9/k8sgpt_amd64.deb
curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.7/k8sgpt_amd64.deb
sudo dpkg -i k8sgpt_amd64.deb
```
@@ -109,7 +109,7 @@ sudo dpkg -i k8sgpt_amd64.deb
<!---x-release-please-start-version-->
```
wget https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.9/k8sgpt_386.apk
wget https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.7/k8sgpt_386.apk
apk add --allow-untrusted k8sgpt_386.apk
```
<!---x-release-please-end-->
@@ -118,7 +118,7 @@ sudo dpkg -i k8sgpt_amd64.deb
<!---x-release-please-start-version-->
```
wget https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.9/k8sgpt_amd64.apk
wget https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.7/k8sgpt_amd64.apk
apk add --allow-untrusted k8sgpt_amd64.apk
```
<!---x-release-please-end-->