Skip to content

Commit

Permalink
trying to fix the env problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Handke committed Jul 3, 2024
1 parent 2b3f288 commit 75282d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/azure-container-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ jobs:
- name: Lowercase the repo name and username
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}

- name: Curl Runner Ip
run: echo "agentIP=$(curl -s https://api.ipify.org/)" >>${GITHUB_ENV}


- name: Azure Login
uses: azure/login@v2
with:
Expand All @@ -76,17 +72,14 @@ jobs:
enable-AzPSSession: true






- name: Build and push container image to registry
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
env:
JWT_SECRET: ${{ secrets.JWT_SECRET }}
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_USER: ${{ secrets.MYSQL_USER }}
TEST_ENV: "Hallo"
with:
push: true
tags: ghcr.io/${{ env.REPO }}:${{ github.sha }}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN --mount=type=secret,id=JWT_SECRET \
export KEYSTORE_PASS=$(cat /run/secrets/KEYSTORE_PASS) && \
export MYSQL_PASSWORD=$(cat /run/secrets/MYSQL_PASSWORD) && \
export MYSQL_USER=$(cat /run/secrets/MYSQL_USER) && \
export TEST_ENV=$(cat /run/secrets/TEST_ENV) && \
mvn clean package spring-boot:repackage -f pom.xml

FROM amazoncorretto:16
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spring.datasource.password=${MYSQL_PASSWORD}
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.hibernate.ddl-auto=update
server.port=13138
server.port=443
user.token.expirationTimeInMs=600000L
user.refreshtoken.expirationTimeInMs=86400000
server.error.include-message=always
Expand Down

0 comments on commit 75282d6

Please sign in to comment.