Skip to content

Turn on kosli beta features (#24) #69

Turn on kosli beta features (#24)

Turn on kosli beta features (#24) #69

Workflow file for this run

name: Main - reports to https://app.kosli.com
on:
push:
branches:
- main
jobs:
variables:
runs-on: ubuntu-latest
outputs:
image_tag: ${{ steps.vars.outputs.image_tag }}
steps:
- name: Prepare
id: vars
run: echo "image_tag=$(echo $GITHUB_SHA | head -c7)" >> ${GITHUB_OUTPUT}
create-kosli-flow:
uses: ./.github/workflows/sub_create_kosli_flow.yml
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
build-image:
needs: [variables, create-kosli-flow]
uses: ./.github/workflows/sub_build_image.yml
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
with:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}
test:
needs: [variables, build-image]
uses: ./.github/workflows/sub_test.yml
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}
sdlc-gate:
needs: [variables, test]
uses: ./.github/workflows/sub_sdlc_gate.yml
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
with:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}
approve-deployment-to-beta:
needs: [variables, sdlc-gate]
uses: ./.github/workflows/sub_approve_deployment.yml
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
with:
KOSLI_ENVIRONMENT: aws-beta
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}
deploy-to-beta:
needs: [variables, approve-deployment-to-beta]
uses: ./.github/workflows/sub_deploy_to_beta.yml
with:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}
approve-deployment-to-prod:
needs: [variables, deploy-to-beta]
uses: ./.github/workflows/sub_approve_deployment.yml
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
with:
KOSLI_ENVIRONMENT: aws-prod
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}
deploy-to-prod:
needs: [variables, approve-deployment-to-prod]
uses: ./.github/workflows/sub_deploy_to_prod.yml
with:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}