Skip to content

Commit

Permalink
Fix some CI issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
scossu committed Aug 14, 2024
1 parent 698b012 commit ba81c4b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/push-app-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tags:
- "v*.*.[1-9]*"
workflow_run:
workflows:
workflows:
- "Push base image"
types:
- "completed"
Expand All @@ -25,6 +25,11 @@ jobs:
with:
submodules: recursive

- name: update version info
run: |
git describe --tags >| VERSION
git rev-parse HEAD >> VERSION
- name: Build the Docker image
run: >
docker build -f Dockerfile .
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/push-test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
with:
submodules: recursive

- name: update version info
run: |
git describe --tags >| VERSION
git rev-parse HEAD >> VERSION
- name: Build the Docker image
run: >
docker build -f Dockerfile .
Expand All @@ -32,4 +37,3 @@ jobs:

- name: Push to Docker Hub
run: docker push $DOCKER_USER/$REPO_NAME:test

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ tags.temp
# Local
ext/arabic_rom/data
!.keep
VERSION
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG WORKROOT "/usr/local/scriptshifter/src"

# Copy core application files.
WORKDIR ${WORKROOT}
COPY entrypoint.sh uwsgi.ini wsgi.py ./
COPY entrypoint.sh uwsgi.ini wsgi.py VERSION ./
COPY scriptshifter ./scriptshifter/
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
4 changes: 1 addition & 3 deletions deps.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# External dependencies.
aksharamukha>=2.2,<3
# Base image dependencies.
camel-tools>=1.5
funcy>=1.15,<2
pymarc>=4.0,<5
repackage>=0.7.3
./ext/yiddish
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ flask-cors>=4.0,<5
python-dotenv>=1.0,<2
pyyaml>=6.0,<7
uwsgi>=2.0,<2.1
yiddish==0.0.21

0 comments on commit ba81c4b

Please sign in to comment.