Skip to content

Commit

Permalink
Remove deployment step and use automated git workflow for now
Browse files Browse the repository at this point in the history
  • Loading branch information
paweld-iRonin committed Oct 22, 2023
1 parent b1c2d32 commit 195e1c0
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,40 +25,3 @@ jobs:

- name: Run tests
run: npm run test
deploy:
name: 'Deploy to AWS AppRunner'
if: ${{ always() && contains(join(needs.*.result, ','), 'success') && github.ref == 'refs/heads/main' }}
needs: [test]
runs-on: ubuntu-latest

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
# Use GitHub OIDC provider
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-skip-session-tagging: true
- name: Deploy to App Runner
id: deploy-apprunner
uses: awslabs/amazon-app-runner-deploy@main
with:
service: app-runner-git-deploy-service
source-connection-arn: ${{ secrets.AWS_CONNECTION_SOURCE_ARN }}
repo: https://github.com/${{ github.repository }}
branch: ${{ github.ref }}
runtime: NODEJS_16
build-command: npm install
start-command: npm run deploy
port: 3000
region: ${{ secrets.AWS_REGION }}
cpu : 1
memory : 2
# Deprecated: wait-for-service-stability: true
# The new way to control service stability timeout
wait-for-service-stability-seconds: 600

- name: App Runner URL
run: echo "App runner URL ${{ steps.deploy-apprunner.outputs.service-url }}"

0 comments on commit 195e1c0

Please sign in to comment.