Skip to content

Commit

Permalink
[Temporary commit] deploy to production
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Aug 31, 2023
1 parent 6759779 commit 64804f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,28 +132,29 @@ jobs:
with:
java-version: ${{ env.JDK_VERSION }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- uses: ./.github/actions/create-mvn-settings
- name: Generate settings.xml
uses: ./.github/actions/create-mvn-settings
with:
nexus-server-id: ${{ secrets.NEXUS_SERVER_ID }}
nexus-user: ${{ secrets.NEXUS_USER }}
nexus-token: ${{ secrets.NEXUS_TOKEN }}
- name: Load compile-time settings
- name: Load webservice settings
run: |
echo "${{ secrets.APPLICATION_PROPERTIES }}" > src/main/resources/application.properties
echo "${{ secrets.JPADATASTORE_PROPERTIES }}" > src/main/resources/jpadatastore.properties
- name: Generate webservice WAR file
run: mvn -B clean package -Dmaven.test.skip
run: mvn -B clean package
- name: Load SSL Certificates into AMI
working-directory: hashicorp/images
run: |
echo '${{ secrets.SSL_CERTIFICATE }}' > server.crt
echo '${{ secrets.SSL_CERTIFICATE_KEY }}' > server.key
- name: Load runtime settings into Terraform variable file
working-directory: hashicorp/instances
run: |
touch variables.auto.tfvars
echo 'zone_id = "${{ secrets.ZONE_ID }}"' > variables.auto.tfvars
echo 'sentry_dsn = "${{ secrets.SENTRY_DSN }}"' >> variables.auto.tfvars
- name: Load SSL Certificates
working-directory: hashicorp/images
run: |
echo '${{ secrets.SSL_CERTIFICATE }}' > server.crt
echo '${{ secrets.SSL_CERTIFICATE_KEY }}' > server.key
- name: Push AMI and Deploy EC2
uses: QubitPi/aergia@master
with:
Expand Down
2 changes: 1 addition & 1 deletion hashicorp/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ rm jetty-home-$JETTY_VERSION.tar.gz
export JETTY_HOME=/home/ubuntu/jetty-home-$JETTY_VERSION
mkdir jetty-base
cd jetty-base
java -jar $JETTY_HOME/start.jar --add-module=annotations,server,http,deploy
java -jar $JETTY_HOME/start.jar --add-module=annotations,server,http,deploy,servlet,webapp,resources,jsp,websocket
mv /home/ubuntu/ROOT.war webapps/ROOT.war
cd ../

0 comments on commit 64804f0

Please sign in to comment.