Commit 8f49cf9 1 parent 37dd651 commit 8f49cf9 Copy full SHA for 8f49cf9
File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 15
15
jobs :
16
16
build-and-push :
17
17
runs-on : ubuntu-latest
18
+ env :
19
+ CACHE_FROM : type=local
20
+ CACHE_TO : type=local
18
21
steps :
22
+ - name : Setup cache
23
+ if : ${{ inputs.cache }}
24
+ run : |
25
+ echo "CACHE_FROM=type=gha" >> $GITHUB_ENV
26
+ echo "CACHE_TO=type=gha,mode=max" >> $GITHUB_ENV
19
27
- name : Login to Docker
20
28
uses : docker/login-action@v3
21
29
with :
30
38
push : true
31
39
tags : ${{ inputs.tags }}
32
40
target : ${{ inputs.target }}
33
- cache-from :
34
- cache-to :
41
+ cache-from : ${{ env.CACHE_FROM }}
42
+ cache-to : ${{ env.CACHE_TO }}
Original file line number Diff line number Diff line change 17
17
with :
18
18
tags : ghcr.io/${{ github.repository_owner }}/curq-ci:pr-${{ github.event.pull_request.number }}
19
19
target : " ci"
20
+ cache : true
20
21
test :
21
22
runs-on : ubuntu-22.04
22
23
needs : [build]
@@ -37,12 +38,12 @@ jobs:
37
38
DB_USER : odoo
38
39
DB_PASSWORD : odoo
39
40
WORKERS : " 0"
41
+ WITHOUT_DEMO : " False"
40
42
DOCKER : " true"
41
43
steps :
42
44
- name : Create config file
43
45
run : |
44
46
create_config_file.sh
45
- cat /odoo/odoo.cfg
46
47
- name : Wait for PostgreSQL
47
48
run : |
48
49
wait_for_postgres.sh
You can’t perform that action at this time.
0 commit comments