use gitlab docker registry
This commit is contained in:
parent
c7e4e2a3d5
commit
575c60b434
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*~
|
*~
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
*.swp
|
||||||
|
10
.gitlab-ci.yml
Normal file
10
.gitlab-ci.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
build:
|
||||||
|
image: docker:latest
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
|
- docker build --pull --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
@ -1,4 +1,4 @@
|
|||||||
FROM quay.io/thallian/php7-fpm:latest
|
FROM registry.gitlab.com/thallian/docker-php7-fpm:latest
|
||||||
|
|
||||||
ENV VERSION 1.3.0
|
ENV VERSION 1.3.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user