Commit 6284a138 authored by David's avatar David

Update .gitlab-ci.yml to use new portus registry

parent 258b3d7a
Pipeline #225 failed with stage
in 26 seconds
......@@ -23,15 +23,19 @@
# paths:
# -
variables:
REGISTRY_IMAGE: registry.dark.kow.is/kowis/wordpress-container
build:
image: docker:stable
# services:
# - docker:dind
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker login -u $REGISTRY_USER -p $REGISTRY_PASS registry.dark.kow.is
- docker pull wordpress:php7.3-fpm
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker pull $REGISTRY_IMAGE:latest || true
- cd wordpress-container
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
- docker build --cache-from $REGISTRY_IMAGE:latest --tag $REGSITRY_IMAGE:latest .
- docker push $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