Răsfoiți Sursa

Set TZdata beforehand

Solve issue with Ubuntu 20.04
Jaap Marcus 1 an în urmă
părinte
comite
e81edbc3e9
1 a modificat fișierele cu 17 adăugiri și 21 ștergeri
  1. 17 21
      .drone.yml

+ 17 - 21
.drone.yml

@@ -15,6 +15,15 @@ steps:
       - cd hestiacp
       - echo "Checkout ${branch}"
       - git checkout ${branch}
+  - name: Ubuntu 20.04
+    image: ubuntu:focal
+    commands:
+    - DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC  apt-get update && apt-get install -y curl tzdata
+    - ln -snf /usr/share/zoneinfo/CET /etc/localtime && echo CET > /etc/timezone
+    - ./hestiacp/src/hst_autocompile.sh --all --noinstall --keepbuild --debug '~localsrc'
+    - mkdir -p ./packages/focal
+    - mv /tmp/hestiacp-src/deb/*.deb ./packages/focal
+    - rm -rf /tmp/hestia-src/
   - name: Ubuntu 24.04
     image: ubuntu:noble
     commands:
@@ -31,14 +40,6 @@ steps:
     - mkdir -p ./packages/jammy
     - mv /tmp/hestiacp-src/deb/*.deb ./packages/jammy
     - rm -rf /tmp/hestia-src/
-  - name: Ubuntu 20.04
-    image: ubuntu:focal
-    commands:
-    - ln -snf /usr/share/zoneinfo/CET /etc/localtime && echo CET > /etc/timezone
-    - ./hestiacp/src/hst_autocompile.sh --all --noinstall --keepbuild --debug '~localsrc'
-    - mkdir -p ./packages/focal
-    - mv /tmp/hestiacp-src/deb/*.deb ./packages/focal
-    - rm -rf /tmp/hestia-src/
   - name: Debian 10
     image: debian:buster
     commands:
@@ -97,12 +98,15 @@ trigger:
         - cd hestiacp
         - echo "Checkout ${branch}"
         - git checkout ${branch}
-    - name: Build JS/CSS
-      image: node:current-slim
+    - name: Ubuntu 20.04
+      image: ubuntu:focal
       commands:
-      - cd ./hestiacp/
-      - npm ci
-      - npm run build
+      - DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC  apt-get update && apt-get install -y curl tzdata
+      - ln -snf /usr/share/zoneinfo/CET /etc/localtime && echo CET > /etc/timezone
+      - ./hestiacp/src/hst_autocompile.sh --all --noinstall --keepbuild --debug '~localsrc'
+      - mkdir -p ./packages/focal
+      - mv /tmp/hestiacp-src/deb/*.deb ./packages/focal
+      - rm -rf /tmp/hestia-src/
     - name: Ubuntu 24.04
       image: ubuntu:noble
       commands:
@@ -119,14 +123,6 @@ trigger:
       - mkdir -p ./packages/jammy
       - mv /tmp/hestiacp-src/deb/*.deb ./packages/jammy
       - rm -rf /tmp/hestia-src/
-    - name: Ubuntu 20.04
-      image: ubuntu:focal
-      commands:
-      - ln -snf /usr/share/zoneinfo/CET /etc/localtime && echo CET > /etc/timezone
-      - ./hestiacp/src/hst_autocompile.sh --all --noinstall --keepbuild --debug '~localsrc'
-      - mkdir -p ./packages/focal
-      - mv /tmp/hestiacp-src/deb/*.deb ./packages/focal
-      - rm -rf /tmp/hestia-src/
     - name: Debian 10
       image: debian:buster
       commands: