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 f03d646 commit 9c3de2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load WS classpath properties files and compile-time environment variables into Packer variable file
- name: Load WS classpath properties files and compile-time settings into Packer variable file
run: |
touch images/application.properties
touch images/jpadatastore.properties
echo "${{ secrets.APPLICATION_PROPERTIES }}" > images/application.properties
echo "${{ secrets.JPADATASTORE_PROPERTIES }}" > images/jpadatastore.properties
touch images/settings.xml
echo '${{ secrets.MAVEN_SETTINGS_FILE }}' > images/settings.xml
Expand All @@ -146,7 +146,7 @@ jobs:
echo 'ASTRAIOS_MODEL_PACKAGE_JAR_VERSION = "${{ secrets.ASTRAIOS_MODEL_PACKAGE_JAR_VERSION }}"' >> images/aws-ami.auto.pkrvars.hcl
echo 'ASTRAIOS_MODEL_PACKAGE_REPO_ID = "${{ secrets.ASTRAIOS_MODEL_PACKAGE_REPO_ID }}"' >> images/aws-ami.auto.pkrvars.hcl
echo 'ASTRAIOS_MODEL_PACKAGE_REPO_URL = "${{ secrets.ASTRAIOS_MODEL_PACKAGE_REPO_URL }}"' >> images/aws-ami.auto.pkrvars.hcl
- name: Load runtime environment variables into Terraform variable file
- name: Load runtime settings into Terraform variable file
run: |
touch instances/variables.auto.tfvars
echo 'zone_id = "${{ secrets.ZONE_ID }}"' > instances/variables.auto.tfvars
Expand All @@ -156,7 +156,7 @@ jobs:
run: |
echo '${{ secrets.SSL_CERTIFICATE }}' > server.crt
echo '${{ secrets.SSL_CERTIFICATE_KEY }}' > server.key
- name: Publish Jersey WS AMI image and deploy it to EC2 through HashiCorp
- name: Publish Astraios AMI Image and Deploy it to EC2 through HashiCorp
uses: QubitPi/aergia@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion hashicorp/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sudo apt install openjdk-17-jdk openjdk-17-jre

# Install and configure Maven
sudo apt install maven -y
mv settings.xml ~/.m2/settings.xml
mv /home/ubuntu/settings.xml /home/ubuntu/.m2/settings.xml

# Package WAR
git clone https://github.com/paion-data/astraios.git
Expand Down

0 comments on commit 9c3de2f

Please sign in to comment.