forked from chrisdinn/brando
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sbt version to 1.9.2, add REDIS_HOST environment variable, and…
… use host from configuration file in Redis and Sentinel classes
- Loading branch information
Showing
15 changed files
with
390 additions
and
299 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,48 @@ | ||
name: Build @horn/brando | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build $ Push | ||
runs-on: ubuntu-22.04 | ||
# Service containers to run with `container-job` | ||
services: | ||
# Label used to access the service container | ||
redis: | ||
# Docker Hub image | ||
image: redis | ||
# Set health checks to wait until redis has started | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
cache: 'sbt' | ||
- name: Compile & Test | ||
run: sbt test | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }} | ||
REDIS_HOST: "redis" | ||
- name: Fetch version from build.sbt | ||
id: current_version | ||
run: echo "version=$(grep "version.*:=" version.sbt | sed 's/.*"\(.*\)"/\1/')" >> $GITHUB_OUTPUT | ||
- name: Publish API to github package registry | ||
run: sbt +publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }} | ||
- uses: rickstaa/action-create-tag@v1 | ||
with: | ||
tag: ${{ steps.current_version.outputs.version }} | ||
tag_exists_error: false |
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,15 +1,45 @@ | ||
.DS_Store | ||
# bloop and metals | ||
.bloop | ||
.bsp | ||
.metals | ||
project/metals.sbt | ||
project/project/metals.sbt | ||
project/project/project/metals.sbt | ||
|
||
# vs code | ||
.vscode | ||
|
||
# scala 3 | ||
.tasty | ||
|
||
# sbt | ||
project/project/ | ||
project/target/ | ||
target/ | ||
project/boot/ | ||
project/build/target/ | ||
project/plugins/target/ | ||
project/plugins/lib_managed/ | ||
project/plugins/src_managed/ | ||
*.log | ||
.cache | ||
|
||
# eclipse | ||
build/ | ||
.classpath | ||
.project | ||
.settings | ||
*.rdb | ||
.idea/ | ||
.idea_modules/ | ||
.worksheet | ||
bin/ | ||
.cache | ||
|
||
# intellij idea | ||
*.log | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea | ||
|
||
# mac | ||
.DS_Store | ||
|
||
# other? | ||
.history | ||
.scala_dependencies | ||
.cache-main | ||
|
||
# general | ||
*.class |
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
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,6 @@ | ||
credentials += Credentials( | ||
"GitHub Package Registry", | ||
"maven.pkg.github.com", | ||
"8eo", | ||
sys.env("GITHUB_TOKEN") | ||
) |
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 @@ | ||
sbt.version=1.5.1 | ||
sbt.version=1.9.2 |
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
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
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
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
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
Oops, something went wrong.