WIP: use zip files to get container logs of azure web apps #1578
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: | |
- '**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
pre-build: | |
runs-on: ubuntu-20.04 | |
outputs: | |
tag: ${{ steps.prep.outputs.tag }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare | |
id: prep | |
run: | | |
TAG=$(echo $GITHUB_SHA | head -c7) | |
echo "TAG=${TAG}" >> ${GITHUB_ENV} | |
echo "tag=$TAG" >> $GITHUB_OUTPUT | |
test: | |
needs: [pre-build] | |
if: ${{ github.ref != 'refs/heads/prod' }} | |
uses: kosli-dev/cli/.github/workflows/test.yml@main | |
with: | |
AWS_ACCOUNT_ID: 772819027869 | |
AWS_REGION: eu-central-1 | |
secrets: | |
github_access_token: ${{ secrets.KOSLI_GITHUB_TOKEN }} | |
gitlab_access_token: ${{ secrets.KOSLI_GITLAB_TOKEN }} | |
azure_access_token: ${{ secrets.KOSLI_AZURE_TOKEN }} | |
bitbucket_password: ${{ secrets.KOSLI_BITBUCKET_PASSWORD }} | |
jira_api_token: ${{ secrets.KOSLI_JIRA_API_TOKEN }} | |
slack_webhook: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }} | |
slack_channel: ${{ secrets.MERKELY_SLACK_CI_FAILURES_CHANNEL }} | |
docker: | |
needs: [pre-build, test] | |
if: ${{ github.ref != 'refs/heads/prod' }} | |
uses: kosli-dev/cli/.github/workflows/docker.yml@main | |
with: | |
tag: ${{ needs.pre-build.outputs.tag }} | |
platforms: linux/amd64 | |
secrets: | |
slack_webhook: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }} | |
slack_channel: ${{ secrets.MERKELY_SLACK_CI_FAILURES_CHANNEL }} | |
ghcr_user: ${{ secrets.GHCR_USER }} | |
ghcr_token: ${{ secrets.GHCR_TOKEN }} | |
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN }} | |
snyk_token: ${{ secrets.SNYK_TOKEN }} | |
upload-kosli-reporter-package-staging: | |
needs: [pre-build, test] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: kosli-dev/cli/.github/workflows/upload-reporter-package.yml@main | |
with: | |
tag: ${{ needs.pre-build.outputs.tag }} | |
s3_name: reporter-lambda-stagingdacef8339fbd41ce31c346f854a85d0c74f7c4e8 | |
AWS_ACCOUNT_ID: 772819027869 | |
AWS_REGION: eu-central-1 | |
deploy-staging-reporters: | |
runs-on: ubuntu-20.04 | |
needs: [pre-build, upload-kosli-reporter-package-staging] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
steps: | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.KOSLI_REPORTER_REPO_ACCESS_TOKEN }} | |
repository: kosli-dev/kosli-reporter | |
event-type: deploy-reporter | |
client-payload: '{"env": "staging", "tag": "${{ needs.pre-build.outputs.tag }}"}' |