From 305ec55b10c4774dea3f40bc28e81295c13a0275 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 4 Nov 2024 14:30:53 +0100 Subject: [PATCH 1/2] [v7.0/forgejo] chore(ci): notify the k8s cluster about experimental releases This is in preparation of the migration of the v*.next.forgejo.org instances currently managed at https://code.forgejo.org/infrastructure/k8s The key difference is that the former system relies on ad-hoc scripts and creates one k8s cluster for each instance, sharing nothing between them. The newer k8s cluster is used for all and requires significantly less ad-hoc tooling. See also: * https://code.forgejo.org/infrastructure/next-digest * https://code.forgejo.org/infrastructure/k8s-cluster/src/branch/main/k8s.md#updating-v-next-forgejo-org (cherry picked from commit dab156b45269cc089386a6e3e0a6cc5b6ff298d6) --- .forgejo/workflows/publish-release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.forgejo/workflows/publish-release.yml b/.forgejo/workflows/publish-release.yml index b89e8d1d7b..5614640655 100644 --- a/.forgejo/workflows/publish-release.yml +++ b/.forgejo/workflows/publish-release.yml @@ -60,6 +60,14 @@ jobs: verbose: ${{ vars.VERBOSE }} + - name: upgrade v*.next.forgejo.org (k8s) + uses: https://code.forgejo.org/infrastructure/next-digest@v1.1.0 + with: + url: https://placeholder:${{ secrets.TOKEN_NEXT_DIGEST }}@code.forgejo.org/infrastructure/next-digest + ref_name: '${{ github.ref_name }}' + image: 'codeberg.org/forgejo-experimental/forgejo' + tag_suffix: '-rootless' + - name: set up go for the DNS update below if: vars.ROLE == 'forgejo-experimental' && secrets.OVH_APP_KEY != '' uses: https://code.forgejo.org/actions/setup-go@v4 From b81dfaf2b36a0fc6ecbf772ff5657b29c042321e Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 4 Nov 2024 14:46:00 +0100 Subject: [PATCH 2/2] chore(ci): the k8s cluster uses the root container v7.next.forgejo.org is legacy and was created with a root container image as an exception. https://code.forgejo.org/infrastructure/k8s-cluster/issues/30#issuecomment-17221 --- .forgejo/workflows/publish-release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.forgejo/workflows/publish-release.yml b/.forgejo/workflows/publish-release.yml index 5614640655..28451e977e 100644 --- a/.forgejo/workflows/publish-release.yml +++ b/.forgejo/workflows/publish-release.yml @@ -66,7 +66,6 @@ jobs: url: https://placeholder:${{ secrets.TOKEN_NEXT_DIGEST }}@code.forgejo.org/infrastructure/next-digest ref_name: '${{ github.ref_name }}' image: 'codeberg.org/forgejo-experimental/forgejo' - tag_suffix: '-rootless' - name: set up go for the DNS update below if: vars.ROLE == 'forgejo-experimental' && secrets.OVH_APP_KEY != ''