Skip to content

Commit

Permalink
Merge branch 'release/0.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
usommerl committed Sep 11, 2021
2 parents a0e8030 + df883f3 commit 8b8caec
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ jobs:
java-version: 11
- name: Run tests
run: sbt testCovered
create-github-release-draft:
needs: [ci]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Create GitHub release draft
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: ${{ github.ref }}
build-docker-images:
needs: [ci]
if: startsWith(github.ref, 'refs/tags/v')
Expand Down Expand Up @@ -42,12 +55,14 @@ jobs:
- name: Tag remaining image for gcr.io
run: |
export IMAGE_GHCR=$(docker images ghcr.io/usommerl/graalnative4s --format "{{.Repository}}:{{.Tag}}")
export IMAGE_GCR=$(echo $IMAGE_GHCR | sed 's/ghcr.io/eu.gcr.io/')
export IMAGE_GCR=$(echo $IMAGE_GHCR | sed 's/ghcr.io\/usommerl/eu.gcr.io\/usommerl-02/')
docker tag $IMAGE_GHCR $IMAGE_GCR
echo "image_gcr=$IMAGE_GCR" >> $GITHUB_ENV
- name: Create GitHub release
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Google Container Registry
uses: docker/login-action@v1
with:
version: ${{ github.ref }}
registry: gcr.io
username: _json_key
password: ${{ secrets.GCP_SA_KEY_JSON }}
- name: Push image to Google Container Registry
run: docker push ${{ env.image_gcr }}
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.0.2"
version = "3.0.3"

maxColumn = 140
align.preset = most
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"resources":{
"includes":[
{"pattern":".*swagger-ui/.*"},
{"pattern":".*mimeByExtensions.txt"},
{"pattern":"\\Qlibrary.properties\\E"},
{"pattern":"\\Qorg/slf4j/impl/StaticLoggerBinder.class\\E"}
]},
Expand Down

0 comments on commit 8b8caec

Please sign in to comment.