-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yannis
committed
Aug 31, 2022
1 parent
655e6fd
commit 5cf95b2
Showing
3 changed files
with
44 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Rokku-STS build | ||
|
||
on: [ push ] | ||
|
||
env: | ||
DOCKER_REPO: wbaa/rokku-sts | ||
|
||
jobs: | ||
build: | ||
|
||
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: Set version | ||
run: | | ||
ROKKU_STS_VERSION="${GITHUB_REF##*/}" | ||
echo "ROKKU_STS_VERSION=${ROKKU_STS_VERSION}" >> $GITHUB_ENV | ||
- name: Run docker-compose | ||
run: docker-compose up -d && ./scripts/waitForContainerSetup.sh | ||
|
||
- name: Run tests | ||
run: sbt clean coverage test it:test coverageReport | ||
|
||
- name: Build and publish docker image | ||
run: | | ||
if [ "$ROKKU_STS_VERSION" = "master" ]; then | ||
echo $(git describe --tags --abbrev=0) | ||
fi | ||
# Login to docker | ||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | ||
# Build docker image | ||
echo "Build image for with name $DOCKER_REPO:$ROKKU_STS_VERSION"; | ||
sbt clean docker:publish; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters