Browse Source

Re-add notifier for testing

master
Jesper Hess Nielsen 4 months ago
parent
commit
f650828361
Signed by: Jesper Hess Nielsen <jesper@graffen.dk> GPG Key ID: 351A89E40D763F0F
1 changed files with 43 additions and 34 deletions
  1. 43
    34
      .drone.yml

+ 43
- 34
.drone.yml View File

@@ -1,35 +1,44 @@
1
-pipeline:
2
-  build:
3
-    image: ruby
4
-    commands:
5
-      - gem install bundler
6
-      - bundle install
7
-      - bundle exec jekyll build
1
+kind: pipeline
2
+name: default
3
+
4
+steps:
5
+#  build:
6
+#    image: ruby
7
+#    commands:
8
+#      - gem install bundler
9
+#      - bundle install
10
+#      - bundle exec jekyll build
11
+#  
12
+#  docker:
13
+#    image: plugins/docker
14
+#    repo: docker.data.coop/cryptohagen-website
15
+#    registry: docker.data.coop
16
+#    secrets: [DOCKER_USERNAME, DOCKER_PASSWORD]
17
+#    username:
18
+#      from_secret: DOCKER_USERNAME
19
+#    password:
20
+#      from_secret: DOCKER_PASSWORD
21
+#    tag: 
22
+#      - "${DRONE_BUILD_NUMBER}"
23
+#      - "latest"
24
+#    when:
25
+#      branch:
26
+#        - master
8 27
   
9
-  docker:
10
-    image: plugins/docker
11
-    repo: docker.data.coop/cryptohagen-website
12
-    registry: docker.data.coop
13
-    secrets: [DOCKER_USERNAME, DOCKER_PASSWORD]
14
-    username:
15
-      from_secret: DOCKER_USERNAME
16
-    password:
17
-      from_secret: DOCKER_PASSWORD
18
-    tag: 
19
-      - "${DRONE_BUILD_NUMBER}"
20
-      - "latest"
21
-    when:
22
-      branch:
23
-        - master
24
-#    
25
-#  notify:
26
-#    image: plugins/matrix
27
-#    secrets: [matrix_username, matrix_password]
28
-#    settings:
29
-#      homeserver: https://data.coop
30
-#      roomid: plKSghHbepWeUEtbHE:data.coop
31
-#      username: 
32
-#        from_secret: matrix_username
33
-#      password:
34
-#        from_Secret: matrix_password
35
-#
28
+  - name: testing
29
+    image: alpine
30
+    environment:
31
+      TEST:
32
+        from_secret: matrix_password
33
+    commands:
34
+      - echo hello world
35
+
36
+  - name: notify
37
+    image: plugins/matrix
38
+    settings:
39
+      homeserver: https://data.coop
40
+      roomid: plKSghHbepWeUEtbHE:data.coop
41
+      username: 
42
+        from_secret: matrix_username
43
+      password:
44
+        from_secret: matrix_password

Loading…
Cancel
Save