Skip to content

Build Test and Deploy #6

Build Test and Deploy

Build Test and Deploy #6

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build Test and Deploy
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: Deployment Environment
options:
- DEV
- PROD
message:
required: true
jobs:
publish:
runs-on: ubuntu-latest
environment: prod
name: Build and Deploy workflows to the target environment
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Zulu JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Build and Test
run: |
./gradlew clean build
- name: Deploy
run: |
cd src
echo "Deploying tasks"
./deploy_tasks.sh
echo "Deploying workflows"
./deploy_workflows.sh
env:
CONDUCTOR_SERVER_URL_DEV: ${{ secrets.CONDUCTOR_SERVER_URL_DEV }}
CONDUCTOR_AUTH_KEY_DEV: ${{ secrets.CONDUCTOR_AUTH_KEY_DEV }}
CONDUCTOR_AUTH_SECRET_DEV: ${{ secrets.CONDUCTOR_AUTH_SECRET_DEV }}
ENV: ${{ github.event.inputs.environment }}