From 2ca3a6c5cc817bdab48ba3aca1a268b8ab11f35e Mon Sep 17 00:00:00 2001 From: Madison Grubb Date: Thu, 5 Mar 2026 09:49:44 -0500 Subject: [PATCH] patch: fix deploy pipeline stages for token registry uploads --- .gitea/workflows/pr.yml | 2 +- .gitea/workflows/push.yml | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 452e99e..afebc84 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -75,7 +75,7 @@ jobs: echo "tag=${REGISTRY}/${{ github.repository }}:latest" >> $GITHUB_OUTPUT - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Build (dry run) uses: docker/build-push-action@v6 diff --git a/.gitea/workflows/push.yml b/.gitea/workflows/push.yml index f50fff6..e1718ef 100644 --- a/.gitea/workflows/push.yml +++ b/.gitea/workflows/push.yml @@ -24,12 +24,14 @@ jobs: ./scripts/release.sh - name: Log in to container registry - run: | - REGISTRY="${GITHUB_SERVER_URL#https://}" - echo "${{ secrets.GITEA_REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ github.actor }}" --password-stdin + uses: docker/login-action@v4 + with: + registry: ${{ replace(replace(github.server_url, 'https://', ''), 'http://', '') }} + username: ${{ github.actor }} + password: ${{ secrets.KESTRELOS_REPO_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Build Docker image uses: docker/build-push-action@v6 @@ -47,13 +49,15 @@ jobs: docker push "$IMAGE:$tag" done < .tags + - name: Set up Helm + uses: azure/setup-helm@v4 + - name: Package and push Helm chart env: - GITEA_REGISTRY_TOKEN: ${{ secrets.GITEA_REGISTRY_TOKEN }} + GITEA_REPO_TOKEN: ${{ secrets.KESTRELOS_REPO_TOKEN }} run: | - curl -sSfL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash helm package helm/kestrelos for f in kestrelos-*.tgz; do - curl -sf -u "${{ github.actor }}:$GITEA_REGISTRY_TOKEN" -X POST --upload-file "$f" \ + curl -sf -u "${{ github.actor }}:$GITEA_REPO_TOKEN" -X POST --upload-file "$f" \ "${{ github.server_url }}/api/packages/${{ github.actor }}/helm/api/charts" done