浏览代码

Fix some CI issues.

scossu 9 月之前
父节点
当前提交
ba81c4b5d6
共有 6 个文件被更改,包括 14 次插入7 次删除
  1. 6 1
      .github/workflows/push-app-image.yml
  2. 5 1
      .github/workflows/push-test-image.yml
  3. 1 0
      .gitignore
  4. 1 1
      Dockerfile
  5. 1 3
      deps.txt
  6. 0 1
      requirements.txt

+ 6 - 1
.github/workflows/push-app-image.yml

@@ -6,7 +6,7 @@ on:
     tags:
     tags:
       - "v*.*.[1-9]*"
       - "v*.*.[1-9]*"
   workflow_run:
   workflow_run:
-    workflows: 
+    workflows:
       - "Push base image"
       - "Push base image"
     types:
     types:
       - "completed"
       - "completed"
@@ -25,6 +25,11 @@ jobs:
         with:
         with:
           submodules: recursive
           submodules: recursive
 
 
+      - name: update version info
+        run: |
+          git describe --tags >| VERSION
+          git rev-parse HEAD >> VERSION
+
       - name: Build the Docker image
       - name: Build the Docker image
         run: >
         run: >
           docker build -f Dockerfile .
           docker build -f Dockerfile .

+ 5 - 1
.github/workflows/push-test-image.yml

@@ -18,6 +18,11 @@ jobs:
         with:
         with:
           submodules: recursive
           submodules: recursive
 
 
+      - name: update version info
+        run: |
+          git describe --tags >| VERSION
+          git rev-parse HEAD >> VERSION
+
       - name: Build the Docker image
       - name: Build the Docker image
         run: >
         run: >
           docker build -f Dockerfile .
           docker build -f Dockerfile .
@@ -32,4 +37,3 @@ jobs:
 
 
       - name: Push to Docker Hub
       - name: Push to Docker Hub
         run: docker push $DOCKER_USER/$REPO_NAME:test
         run: docker push $DOCKER_USER/$REPO_NAME:test
-

+ 1 - 0
.gitignore

@@ -138,3 +138,4 @@ tags.temp
 # Local
 # Local
 ext/arabic_rom/data
 ext/arabic_rom/data
 !.keep
 !.keep
+VERSION

+ 1 - 1
Dockerfile

@@ -3,7 +3,7 @@ ARG WORKROOT "/usr/local/scriptshifter/src"
 
 
 # Copy core application files.
 # Copy core application files.
 WORKDIR ${WORKROOT}
 WORKDIR ${WORKROOT}
-COPY entrypoint.sh uwsgi.ini wsgi.py ./
+COPY entrypoint.sh uwsgi.ini wsgi.py VERSION ./
 COPY scriptshifter ./scriptshifter/
 COPY scriptshifter ./scriptshifter/
 COPY requirements.txt ./
 COPY requirements.txt ./
 RUN pip install --no-cache-dir -r requirements.txt
 RUN pip install --no-cache-dir -r requirements.txt

+ 1 - 3
deps.txt

@@ -1,7 +1,5 @@
-# External dependencies.
-aksharamukha>=2.2,<3
+# Base image dependencies.
 camel-tools>=1.5
 camel-tools>=1.5
 funcy>=1.15,<2
 funcy>=1.15,<2
 pymarc>=4.0,<5
 pymarc>=4.0,<5
 repackage>=0.7.3
 repackage>=0.7.3
-./ext/yiddish

+ 0 - 1
requirements.txt

@@ -4,4 +4,3 @@ flask-cors>=4.0,<5
 python-dotenv>=1.0,<2
 python-dotenv>=1.0,<2
 pyyaml>=6.0,<7
 pyyaml>=6.0,<7
 uwsgi>=2.0,<2.1
 uwsgi>=2.0,<2.1
-yiddish==0.0.21