patch: fix deploy pipeline stages for token registry uploads (#17)
Some checks failed
Push / release-docker-helm (push) Failing after 2m56s
Some checks failed
Push / release-docker-helm (push) Failing after 2m56s
Co-authored-by: Madison Grubb <madison@elastiflow.com> Reviewed-on: #17
This commit was merged in pull request #17.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user