-
Notifications
You must be signed in to change notification settings - Fork 43
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
Showing
2 changed files
with
22 additions
and
21 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 |
---|---|---|
|
@@ -32,25 +32,25 @@ jobs: | |
npm run build | ||
- name: build backend | ||
run: sbt "set test in assembly := {}" clean assembly | ||
- name: release | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
run: | | ||
echo $PGP_SECRET | base64 --decode | gpg --batch --import 2> /dev/null | ||
git checkout . | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "izanami-release-bot" | ||
sbt "release release-version ${{ github.event.inputs.releaseVersion }} with-defaults skip-tests" | ||
- name: github release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: v${{ github.event.inputs.releaseVersion }} | ||
files: | | ||
target/scala-2.13/izanami.jar | ||
- name: Set up Docker Buildx | ||
#- name: release | ||
# env: | ||
# SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
# SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
# PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
# PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
# run: | | ||
# echo $PGP_SECRET | base64 --decode | gpg --batch --import 2> /dev/null | ||
# git checkout . | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "izanami-release-bot" | ||
# sbt "release release-version ${{ github.event.inputs.releaseVersion }} with-defaults skip-tests" | ||
#- name: github release | ||
# uses: softprops/action-gh-release@v2 | ||
# with: | ||
# tag_name: v${{ github.event.inputs.releaseVersion }} | ||
# files: | | ||
# target/scala-2.13/izanami.jar | ||
- name: Set up Docker Build | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
|
@@ -60,6 +60,7 @@ jobs: | |
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: "{{defaultContext}}:target" | ||
cache-from: | | ||
type=local,src=target/scala-2.13/izanami.jar | ||
push: true | ||
tags: maif/izanami:${{ github.event.inputs.releaseVersion }} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
ThisBuild / version := "2.4.4-SNAPSHOT" | ||
ThisBuild / version := "2.4.4" |