Skip to content

Commit

Permalink
Remove obsolete deployment logics in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Jan 21, 2024
1 parent da85bf2 commit 052ba60
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,34 +108,3 @@ jobs:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/jersey-webservice-template:latest

hashicorp:
name: Generated Webservice WAR in GitHub Action, and Publish Template AMI Image and Deploy it to EC2 through HashiCorp
if: ${{ github.event.repository.name != 'jersey-webservice-template' }} # change this to "if: github.ref == 'refs/heads/master'" in fork
needs: tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Deployment environment setup
uses: QubitPi/hashicorp-aws/hashicorp/webservice/auxiliary/github/actions/cd-setup@master
with:
aws-ws-pkrvars-hcl: ${{ secrets.AWS_WS_PKRVARS_HCL }}
ssl-certificate: ${{ secrets.SSL_CERTIFICATE }}
ssl-certificate-key: ${{ secrets.SSL_CERTIFICATE_KEY }}
nginx-config-file: ${{ secrets.NGINX_CONFIG_FILE }}
filebeat-config-file: ${{ secrets.FILEBEAT_CONFIG_FILE }}
aws-ws-tfvars: ${{ secrets.AWS_WS_TFVARS }}
- name: Load webservice properties files
run: echo '${{ secrets.OAUTH_PROPERTIES }}' > src/main/resources/oauth.properties
- name: Generate webservice WAR file
run: mvn -B clean package
- name: Move WAR file to a location for HashiCorp deployment to pickup
run: mv target/astraios-1.0-SNAPSHOT.war ../hashicorp-aws/hashicorp/webservice/images/
- name: QubitPi/hashicorp-aws
uses: QubitPi/hashicorp-aws@master
with:
hashicorp-dir: ../hashicorp-aws/hashicorp/webservice
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

0 comments on commit 052ba60

Please sign in to comment.