Procházet zdrojové kódy

Merge branch 'master' of gitote.in:gitote/gitote

Yoginth před 7 roky
rodič
revize
355933e20b
3 změnil soubory, kde provedl 49 přidání a 1 odebrání
  1. 0 1
      README.md
  2. 29 0
      docker-compose.yml
  3. 20 0
      templates/pages/donate.tmpl

+ 0 - 1
README.md

@@ -1,6 +1,5 @@
 # Gitote
 
-[![Buils](https://gitlab.com/gitote/mirror/badges/master/pipeline.svg)](https://gitlab.com/gitote/mirror/commits/master)
 [![Go Report](https://goreportcard.com/badge/gitote.in/gitote/gitote)](https://goreportcard.com/report/gitote.in/gitote/gitote)
 [![Bountysource](https://img.shields.io/bountysource/team/gitote/activity.svg)](https://www.bountysource.com/teams/gitote)
 [![Website Status](https://img.shields.io/website-up-down-green-red/http/gitote.in.svg?label=status)](https://gitote.in)

+ 29 - 0
docker-compose.yml

@@ -0,0 +1,29 @@
+version: '2'
+
+services:
+  drone-server:
+    image: drone/drone:0.8
+    ports:
+      - 8000:8000
+    volumes:
+      - ./drone:/var/lib/drone/
+    restart: always
+    environment:
+      - DRONE_OPEN=true
+      - DRONE_ADMIN=foo
+      - DRONE_HOST=http://<DRONE-HOSTNAME:PORT>
+      - DRONE_GOGS=true
+      - DRONE_GOGS_URL=http://<GOGS-HOSTNAME:PORT>
+      - DRONE_SECRET=INSERT_A_SECRET_STRING
+
+  drone-agent:
+    image: drone/drone:0.8
+    command: agent
+    restart: always
+    depends_on: [ drone-server ]
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock
+    environment:
+      - DRONE_SERVER=ws://drone-server:8000/ws/broker
+      # - DRONE_SERVER=wss://ci.example.com/ws/broker # for https hostnames
+      - DRONE_SECRET=INSERT_A_SECRET_STRING

+ 20 - 0
templates/pages/donate.tmpl

@@ -0,0 +1,20 @@
+<div class="pages bg">
+    {{template "base/head" .}}
+    <div class="pages head">
+        <p class="text">💰 Donate Us 💰</p>
+    </div>
+    <div class="pages body">
+        <form class="ui center" action="your-server-side-code" method="POST">
+        <script
+            src="https://checkout.stripe.com/checkout.js" class="stripe-button"
+            data-key="pk_test_axY7934PEATGRLC6or0gaRVe"
+            data-amount="999"
+            data-name="Gitote"
+            data-description="Example charge"
+            data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
+            data-locale="auto">
+        </script>
+        </form>
+    </div>
+    {{template "base/footer" .}}
+</div>