-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (36 loc) · 1.01 KB
/
build-feature.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
name: Rokku-STS feature branch build
on:
push:
branches-ignore:
- master
env:
DOCKER_REPO: wbaa/rokku-sts
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
- name: Run docker-compose
run: docker-compose up -d && ./scripts/waitForContainerSetup.sh
- name: Run tests
run: sbt clean coverage test it:test coverageReport
upload-image:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Build and publish docker image
run: |
# Login to docker
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
# Build docker image
echo "Build image $DOCKER_REPO:${GITHUB_REF##*/}";
ROKKU_STS_VERSION=${GITHUB_REF##*/} sbt clean docker:publish;