]> git.mxchange.org Git - friendica.git/commitdiff
Drone | check database.sql
authorPhilipp <admin@philipp.info>
Sun, 7 Nov 2021 22:38:04 +0000 (23:38 +0100)
committerPhilipp <admin@philipp.info>
Sun, 7 Nov 2021 22:38:04 +0000 (23:38 +0100)
.drone.yml

index 00bd46dbdabe89346523c770ea909d90d4b1e7c1..580d8b8af754b4ed34b8c838eb681ec70adc0062 100644 (file)
@@ -146,7 +146,7 @@ steps:
     volumes:
       - name: cache
         path: /tmp/cache
-  - name: Test Friendica
+  - name: Recreate database.sql
     image: friendicaci/php7.4:php7.4.18
     environment:
       MYSQL_HOST: "mariadb"
@@ -183,6 +183,22 @@ steps:
         echo "database.sql mismatch.";
         exit 1;
         fi
+
+services:
+  - name: mariadb
+    image: mariadb:latest
+    environment:
+      MYSQL_ALLOW_EMPTY_PASSWORD: "true"
+      MYSQL_DATABASE: "test"
+      MYSQL_PASSWORD: "test"
+      MYSQL_USER: "test"
+    tmpfs:
+      - /var/lib/mysql
+
+volumes:
+  - name: cache
+    host:
+      path: /tmp/drone-cache
 ---
 kind: pipeline
 type: docker