deploy-playground.yml 930 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Deploy Playground
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. gitRepo:
  6. description: 'Code repository'
  7. required: false
  8. default: 'https://github.com/Joystream/joystream.git'
  9. branchName:
  10. description: 'Branch to deploy'
  11. required: false
  12. default: 'master'
  13. keyName:
  14. description: 'SSH key pair on AWS'
  15. required: false
  16. default: 'joystream-github-action-key'
  17. instanceType:
  18. description: 'AWS EC2 instance type (t2.micro, t2.large)'
  19. required: false
  20. default: 't2.micro'
  21. defaults:
  22. run:
  23. working-directory: devops/aws
  24. jobs:
  25. deploy-playground:
  26. name: Create an EC2 instance and configure docker-compose stack
  27. runs-on: ubuntu-latest
  28. env:
  29. STACK_NAME: joystream-playground-{{ github.event.inputs.branchName }}-${{ github.run_number }}
  30. steps:
  31. - name: Checkout
  32. uses: actions/checkout@v2