diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 06a390ea..f6610f13 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 }}