ajust log debug #36
Workflow file for this run
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
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; |