Commit 405c8ac1 authored by David's avatar David

Tweaks to the build

parent 02c2559b
Pipeline #38 failed with stage
in 21 seconds
...@@ -33,6 +33,8 @@ build: ...@@ -33,6 +33,8 @@ build:
stage: build stage: build
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
- cd wordpress-container - cd wordpress-container
- docker build -t $CI_REGISTRY:latest . - docker build -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY:latest - docker push $CI_REGISTRY_IMAGE:latest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment