test 2 #4
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: Deploy Review | |
on: | |
pull_request_target: | |
branches: | |
- development | |
jobs: | |
create_gh_environment: | |
uses: nepalevov/ai-dial-ci/.github/workflows/gh_environment.yml@main | |
secrets: | |
ACTIONS_BOT_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }} | |
with: | |
operation: create | |
# HINT: outputs: ["environment_name", "environment_url"] | |
test_and_build: | |
runs-on: ubuntu-latest | |
needs: | |
- create_gh_environment | |
steps: | |
- run: | | |
echo "Running tests and building the application..." | |
echo "Additional docker tag: ${{ needs.create_gh_environment.outputs.environment_name }}" | |
deploy: | |
runs-on: ubuntu-latest | |
needs: | |
- create_gh_environment | |
- test_and_build | |
steps: | |
- run: | | |
echo "Deploying the application to the cluster..." | |
echo "Namespace: ${{ github.repository_id }}-${{ needs.create_gh_environment.outputs.environment_name }} | |
echo "Global deployment URL: ${{ needs.create_gh_environment.outputs.environment_url }}" |