.github/workflows/staging-test.yaml #5
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: Test staging | ||
# The intention is this workflow is triggered either manually or | ||
# after build has completed. | ||
on: | ||
workflow_run: | ||
workflows: ['Deploy to staging'] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
concurrency: integration-test | ||
jobs: | ||
staging-test-images: | ||
name: Container images staging tests | ||
# Workflow run always triggers on completion regardless of status | ||
# This prevents us from running if build fails. | ||
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' | ||
uses: fluent/fluent-bit/.github/workflows/call-test-images.yaml@master | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
image: ${{ github.repository }}/staging | ||
image-tag: latest | ||
environment: staging | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
cosign_key: ${{ secrets.COSIGN_PUBLIC_KEY }} | ||
# Called workflows cannot be nested | ||
staging-test-images-integration-gcp: | ||
name: run integration tests on GCP | ||
# Wait for other tests to succeed | ||
needs: staging-test-images | ||
uses: calyptia/fluent-bit-ci/.github/workflows/reusable-integration-test-gcp.yaml@main | ||
Check failure on line 36 in .github/workflows/staging-test.yaml GitHub Actions / .github/workflows/staging-test.yamlInvalid workflow file
|
||
with: | ||
image_name: ghcr.io/${{ github.repository }}/staging | ||
image_tag: latest | ||
secrets: | ||
grafana_username: ${{ secrets.GRAFANA_USERNAME }} | ||
terraform_api_token: ${{ secrets.TF_API_TOKEN }} | ||
gcp_service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
grafana_password: ${{ secrets.GRAFANA_PASSWORD }} | ||
staging-test-packages: | ||
name: Binary packages staging test | ||
# Workflow run always triggers on completion regardless of status | ||
# This prevents us from running if build fails. | ||
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' | ||
uses: fluent/fluent-bit/.github/workflows/call-test-packages.yaml@master | ||
with: | ||
environment: staging | ||
secrets: | ||
bucket: ${{ secrets.AWS_S3_BUCKET_STAGING }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |