File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 37
37
run : ./configure --with-IBM_DB2=$PWD/clidriver
38
38
- name : make
39
39
run : make V=1
40
+ - name : Cache container
41
+ id : cache-docker
42
+ uses : actions/cache@v2
43
+ with :
44
+ path : image-cache
45
+ key : ${{ runner.os }}-image-cache
46
+ - name : Download container
47
+ if : steps.cache-docker.outputs.cache-hit != 'true'
48
+ run : |
49
+ docker pull ibmcom/db2
50
+ docker save -o image-cache/db2.tar ibmcom/db2
51
+ if : steps.cache-docker.outputs.cache-hit == 'true'
52
+ run : docker load -i image-cache/db2.tar
40
53
- name : Set up Db2 LUW in Docker
41
54
# XXX: Should we be caching the Docker image? Are we creating the necessary things?
42
55
# Adapted from the Travis setup with the changes used for the current
51
64
Database=sample
52
65
EOF
53
66
mkdir database
54
- docker pull ibmcom/db2
55
67
docker run --name db2 --privileged=true -p 60000:50000 -e DB2INST1_PASSWORD=password -e LICENSE=accept -e DBNAME=sample -v database:/database -itd ibmcom/db2
56
68
docker ps -as
57
69
while true
You can’t perform that action at this time.
0 commit comments