Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/dev-nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ on:
- cron: "5 20 * * *"
workflow_dispatch:

permissions:
packages: write

jobs:
dev-release:
runs-on: sdcio-action-runners
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
Expand All @@ -45,15 +48,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
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 }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
Expand All @@ -63,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 }}
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
- "main"
- "!releases/**"

permissions:
packages: write

jobs:
test:
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down