-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.04 KB
/
main.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
name: CI
on: [push, repository_dispatch, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build and deploy
run: ./infra/build/build.sh ${{ secrets.ID_RSA_CONTENTS_BASE64 }} ${{ secrets.DOCKER_CONFIG_CONTENTS_BASE64 }}
env:
GIT_REPO_URL: 'git@github.com:ScottG489/conjob.git'
RELATIVE_SUB_DIR: 'infra/build'
DOCKER_IMAGE_NAME: 'scottg489/conjob-build:latest'
build_application:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v1
- name: Build and deploy
run: |
./build.sh \
${{ secrets.ID_RSA_CONTENTS_BASE64 }} \
${{ secrets.DOCKER_CONFIG_CONTENTS_BASE64 }} \
${{ secrets.AWS_CREDENTIALS_CONTENTS_BASE64 }} \
${{ secrets.MAINKEYPAIR_CONTENTS_BASE64 }} \
${{ secrets.ADMIN_USERNAME }} \
${{ secrets.ADMIN_PASSWORD }} \
${{ secrets.DOCKER_USERNAME }} \
${{ secrets.DOCKER_PASSWORD }} \
${{ secrets.KEYSTORE_PASSWORD }}