Browse Source

Build the docker image using the cache

master
juga 1 year ago
parent
commit
9c13e50ec4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      .gitlab-ci.yml

+ 2
- 1
.gitlab-ci.yml View File

@ -17,7 +17,8 @@ build:
stage: build
script:
- echo building $IMAGE and releasing as $RELEASE_IMAGE
- docker build -t $IMAGE .
- docker pull $RELEASE_IMAGE || true
- docker build --pull -t $IMAGE --cache-from $RELEASE_IMAGE .
- docker push $IMAGE
- docker tag $IMAGE $RELEASE_IMAGE
- docker push $RELEASE_IMAGE


Loading…
Cancel
Save