Skip to content
Permalink
Browse files

feat(ci): use existing image as cache

  • Loading branch information...
jkcclemens committed Jun 13, 2019
1 parent 0b6db54 commit aae4775f95c47a27b3bd91fa75e0f174612ce847
Showing with 3 additions and 2 deletions.
  1. +3 −2 .gitlab-ci.yml
@@ -42,6 +42,7 @@ deploy:
cd .. &&
cp .gitignore .dockerignore &&
chmod +x run.sh &&
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build -t jkcclemens/paste-prebuilt . &&
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin &&
docker pull jkcclemens/paste-prebuilt &&
docker build --cache-from jkcclemens/paste-prebuilt -t jkcclemens/paste-prebuilt . &&
docker push jkcclemens/paste-prebuilt

0 comments on commit aae4775

Please sign in to comment.
You can’t perform that action at this time.