Skip to content

Commit f1d3771

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 8d183b2 commit f1d3771

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

azure-pipelines.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,14 @@ steps:
8080
displayName: 'Download utPLSQL'
8181
8282
- bash: |
83-
docker login -u $(DOCKER_USER) -p $(DOCKER_PASSWORD)
84-
# download Oracle Database docker image from private repo and start the DB
85-
time docker pull ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}
83+
if [[ -f "$(CACHE_DIR)/${ORACLE_VERSION}.img" ]]; then
84+
time docker load -i $(CACHE_DIR)/${ORACLE_VERSION}.img
85+
else
86+
docker login -u $(DOCKER_USER) -p $(DOCKER_PASSWORD)
87+
# download Oracle Database docker image from private repo and start the DB
88+
time docker pull ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}
89+
time docker save ${DOCKHER_HUB_REPO}:${ORACLE_VERSION} -o $(CACHE_DIR)/${ORACLE_VERSION}.img
90+
fi
8691
# start the docker container (DB)
8792
time docker run -d --name ${ORACLE_VERSION} ${DOCKER_OPTIONS} -p 1521:1521 ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}
8893
# Wait for DB startup

0 commit comments

Comments
 (0)