From e0165fbd938571e4863680e2751601a3c213629a Mon Sep 17 00:00:00 2001 From: Hans Thienpondt Date: Fri, 17 Oct 2025 13:04:25 +0000 Subject: [PATCH 1/3] update CI/CD to run from github actions public runners --- .github/workflows/dev-nightlies.yml | 9 +-------- .github/workflows/release.yml | 9 +-------- .goreleaser.nightlies.yml | 2 +- .goreleaser.yml | 2 -- 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dev-nightlies.yml b/.github/workflows/dev-nightlies.yml index 037464c..0c4daf1 100644 --- a/.github/workflows/dev-nightlies.yml +++ b/.github/workflows/dev-nightlies.yml @@ -21,7 +21,7 @@ on: jobs: dev-release: - runs-on: sdcio-action-runners + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v5 @@ -48,13 +48,6 @@ jobs: username: iptecharch-builder password: ${{ secrets.IPTECHARCH_GITHUB_PAT }} - - name: Login to private k8s Container Registry - uses: docker/login-action@v3 - with: - registry: registry.k8s.sdcio.dev - username: iptecharch-builder - password: ${{ secrets.K8S_REGISTRY_HANS }} - - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f3e774..bf8720e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ on: jobs: build-and-release: - runs-on: sdcio-action-runners + runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout @@ -54,13 +54,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Login to private k8s Container Registry - uses: docker/login-action@v3 - with: - registry: registry.k8s.sdcio.dev - username: iptecharch-builder - password: ${{ secrets.K8S_REGISTRY_HANS }} - - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.goreleaser.nightlies.yml b/.goreleaser.nightlies.yml index 215e952..149bf94 100644 --- a/.goreleaser.nightlies.yml +++ b/.goreleaser.nightlies.yml @@ -31,7 +31,7 @@ dockers: ids: - schema-server image_templates: - - "registry.k8s.sdcio.dev/sdcio/{{ .ProjectName }}:v0.0.0-{{ if index .Env \"PR\" }}PR{{ .Env.PR }}-{{ .ShortCommit }}{{ else }}{{ .ShortCommit }}{{ end }}" + - "ghcr.io/sdcio/{{ .ProjectName }}:v0.0.0-{{ if index .Env \"PR\" }}PR{{ .Env.PR }}-{{ .ShortCommit }}{{ else }}{{ .ShortCommit }}{{ end }}" dockerfile: goreleaser.dockerfile skip_push: false build_flag_templates: diff --git a/.goreleaser.yml b/.goreleaser.yml index 2de153d..7bcdf58 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -33,8 +33,6 @@ dockers: image_templates: - "ghcr.io/sdcio/{{ .ProjectName }}:v{{ .Version }}" - "ghcr.io/sdcio/{{ .ProjectName }}:latest" - - "registry.k8s.sdcio.dev/sdcio/{{ .ProjectName }}:v{{ .Version }}" - - "registry.k8s.sdcio.dev/sdcio/{{ .ProjectName }}:latest" dockerfile: goreleaser.dockerfile skip_push: false build_flag_templates: From ef4f3944e3eebc0da9e9ee7773f376ad8e246022 Mon Sep 17 00:00:00 2001 From: Hans Thienpondt Date: Sun, 19 Oct 2025 12:40:56 +0000 Subject: [PATCH 2/3] add permissions and add label functionality --- .github/workflows/dev-nightlies.yml | 3 +++ .github/workflows/test.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/dev-nightlies.yml b/.github/workflows/dev-nightlies.yml index 0c4daf1..12cd32e 100644 --- a/.github/workflows/dev-nightlies.yml +++ b/.github/workflows/dev-nightlies.yml @@ -19,6 +19,9 @@ on: - cron: "5 20 * * *" workflow_dispatch: +permissions: + packages: write + jobs: dev-release: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fbec6d8..f95da81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,9 @@ on: - "main" - "!releases/**" +permissions: + packages: write + jobs: test: runs-on: ubuntu-22.04 From 233d1fae22fd01466c360a755a76e5ec26313331 Mon Sep 17 00:00:00 2001 From: Hans Thienpondt Date: Mon, 20 Oct 2025 11:34:07 +0000 Subject: [PATCH 3/3] use GITHUB_TOKEN --- .github/workflows/dev-nightlies.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-nightlies.yml b/.github/workflows/dev-nightlies.yml index 12cd32e..e4bba2e 100644 --- a/.github/workflows/dev-nightlies.yml +++ b/.github/workflows/dev-nightlies.yml @@ -48,8 +48,8 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: iptecharch-builder - password: ${{ secrets.IPTECHARCH_GITHUB_PAT }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 @@ -59,4 +59,4 @@ jobs: version: latest args: release --clean -f .goreleaser.nightlies.yml --skip=validate env: - GITHUB_TOKEN: ${{ secrets.IPTECHARCH_GITHUB_PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}