Browse Source

fix github actions

Mokhtar Naamani 3 years ago
parent
commit
7c58d76e3a

+ 1 - 1
.github/workflows/deploy-playground.yml

@@ -28,7 +28,7 @@ on:
         required: true
         default: 'false'
       runtimeProfile:
-        description: 'STAGING | TESTING - leave balnk for production'
+        description: 'STAGING | PLAYGROUND | TESTING - leave balnk for production'
         required: false
       # TODO: customDomain instead of ip_address.nip.io
       # customDomain:

+ 8 - 0
.github/workflows/joystream-node-docker-dev.yml

@@ -14,6 +14,13 @@ jobs:
     strategy:
       matrix:
         runtime_profile: ['STAGING', 'PLAYGROUND', 'TESTING']
+        include:
+          - runtime_profile: 'STAGING'
+            cargo_features: 'staging_runtime'
+          - runtime_profile: 'PLAYGROUND'
+            cargo_features: 'playground_runtime'
+          - runtime_profile: 'TESTING'
+            cargo_features: 'testing_runtime'
     env:
       RUNTIME_PROFILE: ${{ matrix.runtime_profile }}
 
@@ -50,6 +57,7 @@ jobs:
           context: .
           file: joystream-node.Dockerfile
           platforms: linux/amd64
+          build_args: CARGO_FEATURES=${{ matrix.cargo_features }}
           push: true
           tags: ${{ env.REPOSITORY }}:${{ steps.compute_shasum.outputs.shasum }}
         if: ${{ steps.compute_image_exists.outputs.image_exists == 1 }}

+ 1 - 1
.pipelines/deploy-node-network-inputs.json

@@ -60,7 +60,7 @@
     "value": "password"
   },
   "runtimeProfile": {
-    "description": "STAGING | TESTING - leave empty for production",
+    "description": "STAGING | PLAYGROUND| TESTING - leave empty for production",
     "value": ""
   },
   "skipChainSetup": {