Files
kestrelos/.gitea/workflows/push.yml
Madison Grubb 0bc847d4ba
All checks were successful
PR / lint (pull_request) Successful in 51s
PR / test (pull_request) Successful in 53s
PR / docker-build (pull_request) Successful in 1m13s
PR / e2e (pull_request) Successful in 2m25s
patch: fix deploy pipeline
2026-03-04 14:58:40 -05:00

60 lines
2.0 KiB
YAML

name: Push
on:
push:
branches: [main]
jobs:
release-docker-helm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.KESTRELOS_REPO_TOKEN }}
- name: Release (bump, tag, push, create release)
env:
CI_REPO_OWNER: ${{ github.actor }}
CI_REPO_NAME: ${{ github.event.repository.name }}
CI_FORGE_URL: ${{ github.server_url }}
CI_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
GITEA_REPO_TOKEN: ${{ secrets.KESTRELOS_REPO_TOKEN }}
run: |
sudo apt-get update -qq && sudo apt-get install -y -qq git wget
./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
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: kestrelos:built
- name: Push Docker image (all tags from .tags)
run: |
REGISTRY="${GITHUB_SERVER_URL#https://}"
IMAGE="$REGISTRY/${{ github.repository }}"
while read -r tag; do
docker tag kestrelos:built "$IMAGE:$tag"
docker push "$IMAGE:$tag"
done < .tags
- name: Package and push Helm chart
env:
GITEA_REGISTRY_TOKEN: ${{ secrets.GITEA_REGISTRY_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" \
"${{ github.server_url }}/api/packages/${{ github.actor }}/helm/api/charts"
done