Skip to content

Commit

Permalink
non-root-user
Browse files Browse the repository at this point in the history
  • Loading branch information
jbropho committed Feb 27, 2024
1 parent 00dd4f5 commit 41c87d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
deploy:
needs: run_checks
runs-on: ubuntu-latest
container: clojure:latest
container:
image: clojure:latest
options: --user 1001
environment: test
steps:
- name: checkout
Expand All @@ -26,7 +28,6 @@ jobs:
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
run: |
git config --global --add safe.directory /__w/jackdaw/jackdaw
apt-get update
apt-get install -y gpg
echo $GPG_PRIVATE_KEY |base64 --decode |gpg --yes --batch --import
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/run_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
jobs:
RunChecks:
runs-on: ubuntu-latest
container: clojure:latest
container:
image: clojure:latest
options: --user 1001
services:
kafka:
image: confluentinc/cp-kafka:5.1.3
Expand Down Expand Up @@ -46,7 +48,6 @@ jobs:
fetch-depth: 100
- name: build
run: |
git config --global --add safe.directory /__w/jackdaw/jackdaw
lein kaocha
env:
KAFKA_BOOTSTRAP_SERVERS: kafka
Expand Down

0 comments on commit 41c87d5

Please sign in to comment.