瀏覽代碼

Merge pull request #2871 from Joystream/add-placeholder-action

Create deploy-playground.yml
Mokhtar Naamani 3 年之前
父節點
當前提交
c0f3d8bff4
共有 1 個文件被更改,包括 35 次插入0 次删除
  1. 35 0
      .github/workflows/deploy-playground.yml

+ 35 - 0
.github/workflows/deploy-playground.yml

@@ -0,0 +1,35 @@
+name: Deploy Playground
+
+on:
+  workflow_dispatch:
+    inputs:
+      gitRepo:
+        description: 'Code repository'
+        required: false
+        default: 'https://github.com/Joystream/joystream.git'
+      branchName:
+        description: 'Branch to deploy'
+        required: false
+        default: 'master'
+      keyName:
+        description: 'SSH key pair on AWS'
+        required: false
+        default: 'joystream-github-action-key'
+      instanceType:
+        description: 'AWS EC2 instance type (t2.micro, t2.large)'
+        required: false
+        default: 't2.micro'
+
+defaults:
+  run:
+    working-directory: devops/aws
+
+jobs:
+  deploy-playground:
+    name: Create an EC2 instance and configure docker-compose stack
+    runs-on: ubuntu-latest
+    env:
+      STACK_NAME: joystream-playground-{{ github.event.inputs.branchName }}-${{ github.run_number }}
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2