File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" \
You can’t perform that action at this time.
0 commit comments