Skip to content

Dev to stage

Dev to stage #6

Workflow file for this run

name: Stage tests
on:
push:
branches:
- 'stage'
workflow_dispatch:
inputs:
# For creating a backport client version
server-tag:
required: true
default: 'latest'
description: 'Server docker image tag'
jobs:
promote-dev-build-to-rc:
uses: ./.github/workflows/bump-version.yml
with:
change: 'promote-dev-build-to-rc'
secrets:
CLIENT_BOT_PAT: ${{ secrets.CLIENT_BOT_PAT }}
run-stage-tests:
needs: promote-dev-build-to-rc
uses: ./.github/workflows/stage-tests.yml
with:
commit_sha: ${{ needs.promote-dev-build-to-rc.outputs.bump_sha }}
secrets: inherit
filter-artifacts:
needs: run-stage-tests
runs-on: ubuntu-latest
steps:
- name: Download built artifacts and matrix outputs
uses: actions/download-artifact@v3
- name: Make folder to store artifacts
run: mkdir matrix-outputs
shell: bash
- name: Reorganize matrix outputs
run: find . -type f -path "*.txt" -exec mv {} matrix-outputs \;
shell: bash
- name: Filter artifacts
id: filter-output
run: echo bad_artifacts=$(python3 filter-artifacts.py) >> $GITHUB_OUTPUT
- name: Remove failed artifacts and matrix outputs
uses: geekyeggo/delete-artifact@v2
with:
name: |
${{ steps.filter-output.outputs.bad_artifacts }}
*.txt
upload-to-jfrog:
name: Upload artifacts to JFrog
needs: [
promote-dev-build-to-rc,
filter-artifacts
]
uses: ./.github/workflows/upload-to-jfrog.yml
with:
new_version: ${{ needs.promote-dev-build-to-rc.outputs.new_version }}
secrets:
JFROG_PLATFORM_URL: ${{ secrets.JFROG_PLATFORM_URL }}
JFROG_ACCESS_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }}