Skip to content

Commit

Permalink
fix: add java http proxy options
Browse files Browse the repository at this point in the history
Co-authored-by: sindrerh2 <[email protected]>
  • Loading branch information
tommytroen and sindrerh2 committed Nov 23, 2023
1 parent 3f7f8ff commit d173eca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,18 @@ jobs:
VAR: image=${{ needs.build.outputs.image }}
TIMEOUT: 15m

deploy-prod:
name: Deploy to NAIS prod
needs: [ build, deploy-dev, deploy-dev-t4 ]
if: "github.ref == 'refs/heads/master'"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_AURA_DEPLOY_APIKEY }}
CLUSTER: prod-fss
RESOURCE: .nais/nais.yml
VARS: .nais/prod-vars.yml
VAR: image=${{ needs.build.outputs.image }}
TIMEOUT: 15m
# deploy-prod:
# name: Deploy to NAIS prod
# needs: [ build, deploy-dev, deploy-dev-t4 ]
# if: "github.ref == 'refs/heads/master'"
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v4
# - uses: nais/deploy/actions/deploy@v1
# env:
# APIKEY: ${{ secrets.NAIS_AURA_DEPLOY_APIKEY }}
# CLUSTER: prod-fss
# RESOURCE: .nais/nais.yml
# VARS: .nais/prod-vars.yml
# VAR: image=${{ needs.build.outputs.image }}
# TIMEOUT: 15m
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ WORKDIR /app
COPY ./build/libs/gandalf-*.jar ./app.jar
USER nonroot

ENV JAVA_TOOL_OPTIONS="${JAVA_OPTS} ${JAVA_PROXY_OPTIONS}"

CMD ["app.jar"]

0 comments on commit d173eca

Please sign in to comment.