-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.31 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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: ${{ github.event.inputs.environment }}
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: |
echo "server is $CONDUCTOR_SERVER_URL"
./gradlew clean build
- name: Deploy
run: |
cd src
echo "Deploying tasks"
./deploy_tasks.sh
echo "Deploying workflows"
./deploy_workflows.sh
env:
CONDUCTOR_SERVER_URL: ${{ secrets.CONDUCTOR_SERVER_URL }}
CONDUCTOR_AUTH_KEY: ${{ secrets.CONDUCTOR_AUTH_KEY }}
CONDUCTOR_AUTH_SECRET: ${{ secrets.CONDUCTOR_AUTH_SECRET }}