From e5731a8989073aac8202fcdc2140f0f2bc4e7b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 4 Jul 2025 13:16:19 +0200 Subject: [PATCH 1/8] Push images to ghcr.io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- charts/gitvote/Chart.yaml | 4 ++-- charts/gitvote/values.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/gitvote/Chart.yaml b/charts/gitvote/Chart.yaml index 8c281a8..54156c1 100644 --- a/charts/gitvote/Chart.yaml +++ b/charts/gitvote/Chart.yaml @@ -41,9 +41,9 @@ annotations: artifacthub.io/containsSecurityUpdates: "true" artifacthub.io/images: | - name: dbmigrator - image: public.ecr.aws/g6m3a0y9/gitvote-dbmigrator:v1.4.0 + image: ghcr.io/${{ github.repository }}/dbmigrator:v1.4.0 - name: gitvote - image: public.ecr.aws/g6m3a0y9/gitvote:v1.4.0 + image: ghcr.io/${{ github.repository }}:v1.4.0 artifacthub.io/links: | - name: source url: https://github.com/cncf/gitvote diff --git a/charts/gitvote/values.yaml b/charts/gitvote/values.yaml index 7943070..c572a2a 100644 --- a/charts/gitvote/values.yaml +++ b/charts/gitvote/values.yaml @@ -36,7 +36,7 @@ dbmigrator: job: image: # Database migrator image repository (without the tag) - repository: public.ecr.aws/g6m3a0y9/gitvote-dbmigrator + repository: ghcr.io/cncf/gitvote/dbmigrator # GitVote service configuration gitvote: @@ -74,7 +74,7 @@ gitvote: deploy: replicaCount: 1 image: - repository: public.ecr.aws/g6m3a0y9/gitvote + repository: ghcr.io/cncf/gitvote resources: {} # PostgreSQL configuration From ab3844b459b53762198cf874245adc89161dc280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 4 Jul 2025 13:17:18 +0200 Subject: [PATCH 2/8] Fix chart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- charts/gitvote/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/gitvote/Chart.yaml b/charts/gitvote/Chart.yaml index 54156c1..51978ba 100644 --- a/charts/gitvote/Chart.yaml +++ b/charts/gitvote/Chart.yaml @@ -41,9 +41,9 @@ annotations: artifacthub.io/containsSecurityUpdates: "true" artifacthub.io/images: | - name: dbmigrator - image: ghcr.io/${{ github.repository }}/dbmigrator:v1.4.0 + image: ghcr.io/cncf/dbmigrator:v1.4.0 - name: gitvote - image: ghcr.io/${{ github.repository }}:v1.4.0 + image: ghcr.io/cncf/gitvote:v1.4.0 artifacthub.io/links: | - name: source url: https://github.com/cncf/gitvote From e42f67a29d776d08a04f347d59cf7dcc369ffbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 4 Jul 2025 13:18:02 +0200 Subject: [PATCH 3/8] Fix image url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- charts/gitvote/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gitvote/Chart.yaml b/charts/gitvote/Chart.yaml index 51978ba..ac4b2bc 100644 --- a/charts/gitvote/Chart.yaml +++ b/charts/gitvote/Chart.yaml @@ -41,7 +41,7 @@ annotations: artifacthub.io/containsSecurityUpdates: "true" artifacthub.io/images: | - name: dbmigrator - image: ghcr.io/cncf/dbmigrator:v1.4.0 + image: ghcr.io/cncf/gitvote/dbmigrator:v1.4.0 - name: gitvote image: ghcr.io/cncf/gitvote:v1.4.0 artifacthub.io/links: | From 0451c2de88a4750ae2a9ffc7a1e6ee7d0df3e29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 4 Jul 2025 13:20:20 +0200 Subject: [PATCH 4/8] Update release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- .github/workflows/release.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4d3170..3fe0eee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Login to AWS Public ECR + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: - registry: public.ecr.aws - username: ${{ secrets.AWS_ACCESS_KEY_ID }} - password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Extract tag name id: extract_tag_name run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT @@ -26,17 +26,17 @@ jobs: run: | docker build \ -f database/migrations/Dockerfile \ - -t public.ecr.aws/g6m3a0y9/gitvote-dbmigrator:${{steps.extract_tag_name.outputs.tag}} \ - -t public.ecr.aws/g6m3a0y9/gitvote-dbmigrator:latest \ + -t ghcr.io/${{ github.repository }}/dbmigrator:${{steps.extract_tag_name.outputs.tag}} \ + -t ghcr.io/${{ github.repository }}/dbmigrator:latest \ . - docker push --all-tags public.ecr.aws/g6m3a0y9/gitvote-dbmigrator + docker push --all-tags ghcr.io/${{ github.repository }}/dbmigrator - name: Build and push gitvote image run: | docker build \ - -t public.ecr.aws/g6m3a0y9/gitvote:${{steps.extract_tag_name.outputs.tag}} \ - -t public.ecr.aws/g6m3a0y9/gitvote:latest \ + -t ghcr.io/${{ github.repository }}:${{steps.extract_tag_name.outputs.tag}} \ + -t ghcr.io/${{ github.repository }}:latest \ . - docker push --all-tags public.ecr.aws/g6m3a0y9/gitvote + docker push --all-tags ghcr.io/${{ github.repository }} package-and-publish-helm-chart: needs: From 9c0fe9854aa01cfadd30a45373641203d0c0c6b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 4 Jul 2025 13:23:44 +0200 Subject: [PATCH 5/8] Update python version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- .github/workflows/chart.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chart.yml b/.github/workflows/chart.yml index 33b5213..3df213d 100644 --- a/.github/workflows/chart.yml +++ b/.github/workflows/chart.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: 3.8 - name: Set up chart-testing uses: helm/chart-testing-action@v2.7.0 - name: Run chart-testing (list-changed) From f136d6efacba8cb5dbadfd27929ea709353ff99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 4 Jul 2025 13:26:53 +0200 Subject: [PATCH 6/8] Bump version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- charts/gitvote/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gitvote/Chart.yaml b/charts/gitvote/Chart.yaml index ac4b2bc..4e2282a 100644 --- a/charts/gitvote/Chart.yaml +++ b/charts/gitvote/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gitvote description: GitVote is a GitHub application that allows holding a vote on issues and pull requests type: application -version: 1.4.0 +version: 1.4.1-0 appVersion: 1.4.0 kubeVersion: ">= 1.19.0-0" home: https://gitvote.dev From 1be4097b9369bfafaaf3eb668fadda7457c896c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Mon, 7 Jul 2025 12:41:54 +0200 Subject: [PATCH 7/8] Fix permissions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- .github/workflows/release.yml | 8 +++++--- charts/gitvote/Chart.yaml | 4 ++-- charts/gitvote/values.yaml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3fe0eee..102454c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,8 @@ permissions: read-all jobs: build-and-publish-images: runs-on: ubuntu-latest + permissions: + packages: write steps: - name: Checkout code uses: actions/checkout@v4 @@ -33,10 +35,10 @@ jobs: - name: Build and push gitvote image run: | docker build \ - -t ghcr.io/${{ github.repository }}:${{steps.extract_tag_name.outputs.tag}} \ - -t ghcr.io/${{ github.repository }}:latest \ + -t ghcr.io/${{ github.repository }}/server:${{steps.extract_tag_name.outputs.tag}} \ + -t ghcr.io/${{ github.repository }}/server:latest \ . - docker push --all-tags ghcr.io/${{ github.repository }} + docker push --all-tags ghcr.io/${{ github.repository }}/server package-and-publish-helm-chart: needs: diff --git a/charts/gitvote/Chart.yaml b/charts/gitvote/Chart.yaml index 4e2282a..84ab73f 100644 --- a/charts/gitvote/Chart.yaml +++ b/charts/gitvote/Chart.yaml @@ -41,9 +41,9 @@ annotations: artifacthub.io/containsSecurityUpdates: "true" artifacthub.io/images: | - name: dbmigrator - image: ghcr.io/cncf/gitvote/dbmigrator:v1.4.0 + image: ghcr.io/cncf/gitvote/dbmigrator:v1.4.1 - name: gitvote - image: ghcr.io/cncf/gitvote:v1.4.0 + image: ghcr.io/cncf/gitvote/server:v1.4.1 artifacthub.io/links: | - name: source url: https://github.com/cncf/gitvote diff --git a/charts/gitvote/values.yaml b/charts/gitvote/values.yaml index c572a2a..c1af33c 100644 --- a/charts/gitvote/values.yaml +++ b/charts/gitvote/values.yaml @@ -74,7 +74,7 @@ gitvote: deploy: replicaCount: 1 image: - repository: ghcr.io/cncf/gitvote + repository: ghcr.io/cncf/gitvote/server resources: {} # PostgreSQL configuration From 3647b44c9944bde0a389853299015d2099f03d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cintia=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Tue, 8 Jul 2025 11:18:41 +0200 Subject: [PATCH 8/8] Update chart version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cintia Sánchez García --- charts/gitvote/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gitvote/Chart.yaml b/charts/gitvote/Chart.yaml index 84ab73f..ed92f73 100644 --- a/charts/gitvote/Chart.yaml +++ b/charts/gitvote/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gitvote description: GitVote is a GitHub application that allows holding a vote on issues and pull requests type: application -version: 1.4.1-0 +version: 1.4.1 appVersion: 1.4.0 kubeVersion: ">= 1.19.0-0" home: https://gitvote.dev