-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1 KB
/
build.yaml
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
47
48
49
50
---
name: build
# Actions that take place on branches
# or are driven by pull-requests to the main/master branch.
# Here we build container images but don't push them
# and therefore do not require docker credentials.
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# (n/a)
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (n/a)
on:
push:
branches-ignore:
- 'master'
pull_request:
branches:
- 'master'
schedule:
# Build every Sunday (0) at 7:15pm
- cron: '15 19 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Compile
working-directory: ./portal-app
run: |
ant -f portal.xml build-prod
mv dist/portal.war ../portal/ROOT.war
ls -l ../portal
- name: Build
run: |
docker build . -t squonk/portal:latest