Skip to content

Split command text correctly #14

Split command text correctly

Split command text correctly #14

Workflow file for this run

name: Workflow
on:
push:
branches: [ main ]
pull_request: { }
jobs:
lint:
uses: BlindfoldedSurgery/actions-python/.github/workflows/lint.yml@v1
with:
python-version: '3.11'
test:
uses: BlindfoldedSurgery/actions-python/.github/workflows/test.yml@v1
with:
python-version: '3.11'
build-container-image:
needs:
- lint
- test
uses: BlindfoldedSurgery/actions-container/.github/workflows/build-image-docker.yml@v2
with:
push-image: ${{ github.ref_name == github.event.repository.default_branch }}
deploy:
runs-on: ubuntu-latest
needs:
- build-container-image
if: success() && github.ref_name == github.event.repository.default_branch
concurrency: production
steps:
- uses: actions/checkout@v4
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
- name: Substitute environment variables in values.yaml
run: "envsubst < values.yaml > values_sub.yaml && mv values_sub.yaml values.yaml"
env:
IMAGE_NAME: "ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/${{ env.GITHUB_REPOSITORY_NAME_PART_SLUG }}"
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
- uses: WyriHaximus/github-action-helm3@v3
with:
exec: helm upgrade location-bot . --install --namespace=telegram-bots --atomic
kubeconfig: '${{ secrets.KUBECONFIG_RAW }}'
clean:
concurrency: cleanup
needs: [ deploy ]
uses: BlindfoldedSurgery/actions-container/.github/workflows/clean.yml@v2