Skip to content

Commit cd9a23b

Browse files
committed
fix ci
1 parent 563c98c commit cd9a23b

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ jobs:
2626
${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') && format('{0}:latest', env.DOCKER_APP_IMAGE_NAME) || '' }}
2727
cache-from: type=gha
2828
cache-to: type=gha,mode=max
29-
- uses: docker/build-push-action@v6
30-
with:
31-
context: backup
32-
push: true
33-
tags: |
34-
${{ format('{0}:{1}', env.DOCKER_BACKUP_IMAGE_NAME, github.sha) }}
35-
${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') && format('{0}:latest', env.DOCKER_BACKUP_IMAGE_NAME) || '' }}
36-
cache-from: type=gha
37-
cache-to: type=gha,mode=max
29+
# - uses: docker/build-push-action@v6
30+
# with:
31+
# context: backup
32+
# push: true
33+
# tags: |
34+
# ${{ format('{0}:{1}', env.DOCKER_BACKUP_IMAGE_NAME, github.sha) }}
35+
# ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') && format('{0}:latest', env.DOCKER_BACKUP_IMAGE_NAME) || '' }}
36+
# cache-from: type=gha
37+
# cache-to: type=gha,mode=max
3838
- run: |
3939
set -euo pipefail
40-
docker run -e POSTGRES_PASSWORD=123456 -p 5432:5432 -v `pwd`/.data/db:/var/lib/postgresql/data -d postgres:13
40+
docker run -e POSTGRES_PASSWORD=123456 -p 5432:5432 -v `pwd`/.data/db:/var/lib/postgresql/data -d postgres:14
4141
sleep 5
4242
docker run --network host -e SQLALCHEMY_URL=postgresql://postgres:123456@localhost ${DOCKER_APP_IMAGE_NAME}:${{ github.sha }}
43+
docker tag ${DOCKER_APP_IMAGE_NAME}:${{ github.sha }} app
4344
docker build -t docgen -f docgen.Dockerfile .
4445
docker run --network host -e SQLALCHEMY_URL=postgresql://postgres:123456@localhost \
4546
-v "`pwd`/docgen_output:/output" \

0 commit comments

Comments
 (0)