Skip to content

Commit

Permalink
👷 Fix Scala Steward running on ubuntu-latest (#146)
Browse files Browse the repository at this point in the history
* 👷 Fix Scala Steward running on ubuntu-latest

* 👷 Add SBT setup

* 🐛 Change uid to 1001

* 🎨 Update settings
  • Loading branch information
ff137 authored Dec 18, 2024
1 parent b64adab commit 8bbb51a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: sbt/setup-sbt@v1
- uses: VirtusLab/scala-cli-setup@v1
with:
jvm: 21
Expand Down Expand Up @@ -60,6 +61,7 @@ jobs:
password: ${{ github.token }}

- uses: coursier/cache-action@v6
- uses: sbt/setup-sbt@v1
- uses: VirtusLab/scala-cli-setup@v1
with:
jvm: 21
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

Expand All @@ -11,6 +12,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
name: Launch Scala Steward
steps:
- name: Setup SBT
uses: sbt/setup-sbt@v1
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
with:
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"files.trimFinalNewlines": true,
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.encoding": "utf8"
"files.encoding": "utf8",
"files.watcherExclude": {
"**/target": true
}
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:21

RUN adduser --system --group --uid 1000 --shell /bin/bash dawn
RUN adduser --system --group --uid 1001 --shell /bin/bash dawn

WORKDIR /app
COPY --chown=0:0 ./target/dawn-patrol ./dawn-patrol
Expand Down
4 changes: 2 additions & 2 deletions helm/dawn-patrol/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ podLabels:
admission.datadoghq.com/enabled: 'false'

podSecurityContext:
fsGroup: 1000
fsGroup: 1001

securityContext:
# readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsUser: 1001
# capabilities:
# drop:
# - ALL
Expand Down

0 comments on commit 8bbb51a

Please sign in to comment.