forked from GarnerCorp/gormorant-please-ignore
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.38 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
47
48
49
50
51
name: gormorant CI
# If you update paths, make sure to update them in no-ci.yml as well
on:
push:
paths-ignore:
- .github/actions
- "README.md"
pull_request:
paths-ignore:
- .github/actions
- "README.md"
permissions:
contents: read
env:
REPOSITORY: "gcr.io/helical-crowbar-220917"
PROJECT_ID: "helical-crowbar-220917"
PLATFORMS: "linux/amd64"
PR_NUMBER: ${{ github.event.pull_request.number || github.ref_name }}
NEXUS_USER: "jenkins"
NEXUS_PASSWORD: "${{ secrets.NEXUS_PASSWORD }}"
concurrency:
group: ${{ github.workflow_ref }}
cancel-in-progress: true
jobs:
build:
name: Build Project
runs-on: ubuntu-latest
steps:
- name: Build w/ sbt
if: github.ref_name != 'main'
uses: garnercorp/build-actions/scala@main
with:
maven-username: ${{ env.NEXUS_USER }}
maven-password: ${{ env.NEXUS_PASSWORD }}
build-script: scripts/build-scala-ci.sh
build-script-args: ${{ env.PR_NUMBER }}
extra-sbt-args: test
- name: Publish
uses: garnercorp/build-actions/scala@main
if: github.ref_name == 'main'
with:
maven-username: ${{ env.NEXUS_USER }}
maven-password: ${{ env.NEXUS_PASSWORD }}
build-script: scripts/build-scala-ci.sh
build-script-args: ${{ env.PR_NUMBER }}
extra-sbt-args: publish