Skip to content

Commit

Permalink
task: test
Browse files Browse the repository at this point in the history
  • Loading branch information
yaansz committed Aug 29, 2024
1 parent a523812 commit 3f817ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ jobs:
key: ${{ secrets.VM_SSH_PRIVATE_KEY }}
script: |
cd /home/${{ secrets.SSH_USERNAME }}/capivara
DISCORD_TOKEN='${{ secrets.DISCORD_BOT_TOKEN }}' LOG_CHANNEL_ID='${{ secrets.DISCORD_LOG_CHANNEL_ID }}' CURUPIRA_RESET='true' DATABASE_DRIVER='org.postgresql.Driver' DATABASE_DIALECT='org.hibernate.dialect.PostgreSQL95Dialect' DATABASE_URL='jdbc:postgresql://host.containers.internal:5432/capivara' DATABASE_USERNAME='${{ secrets.DATABASE_USERNAME }}' DATABASE_PASSWORD='${{ secrets.DATABASE_PASSWORD }}' JAVA_ARGS='-Xmx250M' /bin/bash start-container.sh docker.io/eduardoferro/capivara:${{ github.sha }}
DISCORD_TOKEN='${{ secrets.DISCORD_BOT_TOKEN }}' LOG_CHANNEL_ID='${{ secrets.DISCORD_LOG_CHANNEL_ID }}' CURUPIRA_RESET='true' DATABASE_DRIVER='org.postgresql.Driver' DATABASE_DIALECT='org.hibernate.dialect.PostgreSQL95Dialect' DATABASE_URL='jdbc:postgresql://host.containers.internal:5432/capivara' DATABASE_USERNAME='${{ secrets.DATABASE_USERNAME }}' DATABASE_PASSWORD='${{ secrets.DATABASE_PASSWORD }}' JAVA_ARGS='-Xmx350M' /bin/bash start-container.sh docker.io/eduardoferro/capivara:${{ github.sha }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM docker.io/eclipse-temurin:21-jre-alpine
WORKDIR /app
COPY --from=builder /app .

ENV JAVA_ARGS="-Xmx300M"
ENV JAVA_ARGS="-Xmx350M"
ENV LOG_DIRECTORY="/app/logs"
ENV SPRING_CONFIG_LOCATION="/app/main.properties"
ENV DISCORD_TOKEN="invalid"
Expand Down
2 changes: 1 addition & 1 deletion start-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ podman run -d \
-e DATABASE_PASSWORD=${DATABASE_PASSWORD:-sa} \
-e JAVA_ARGS=${JAVA_ARGS:--Xmx200M} \
--cpus 0.5 \
--memory 300M \
--memory 400M \
--name $CONTAINER_NAME \
--restart always \
--network slirp4netns:allow_host_loopback=true \
Expand Down

0 comments on commit 3f817ab

Please sign in to comment.