Files
geo-service/.gitea/workflows/ci.yaml
T
argoyle 001642e95b
geo-service / build (pull_request) Successful in 1m34s
geo-service / deploy-prod (pull_request) Has been skipped
ci: add debug logging for KUBECONFIG_CONTENT
2026-01-08 08:48:00 +01:00

48 lines
1.4 KiB
YAML

name: geo-service
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
env:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }}
steps:
- uses: actions/checkout@v4
- uses: buildtool/setup-buildtools-action@v1
- name: Debug KUBECONFIG_CONTENT
run: |
echo "KUBECONFIG_CONTENT length: ${#KUBECONFIG_CONTENT}"
if [ -n "$KUBECONFIG_CONTENT" ]; then
echo "KUBECONFIG_CONTENT is set"
echo "First 50 chars: ${KUBECONFIG_CONTENT:0:50}"
else
echo "KUBECONFIG_CONTENT is NOT set"
fi
- name: Build and push
run: unset GITEA_TOKEN && build && push
deploy-prod:
needs: build
if: gitea.ref == 'refs/heads/master'
runs-on: ubuntu-latest
env:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }}
environment: prod
steps:
- uses: actions/checkout@v4
- uses: buildtool/setup-buildtools-action@v1
- name: Install aws-iam-authenticator
run: |
curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/latest/download/aws-iam-authenticator_linux_amd64
chmod +x aws-iam-authenticator
sudo mv aws-iam-authenticator /usr/local/bin/
- name: Deploy
run: deploy prod