Move to GitLab
This commit is contained in:
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- upload
|
||||||
|
- release
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
image: docker:19.03.12
|
||||||
|
services:
|
||||||
|
- docker:19.03.12-dind
|
||||||
|
variables:
|
||||||
|
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
||||||
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker build -t $CI_REGISTRY_IMAGE:latest -t $IMAGE_TAG .
|
||||||
|
- docker build -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest .
|
||||||
|
- docker push $IMAGE_TAG
|
||||||
|
- docker push $CI_REGISTRY_IMAGE:latest
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM php:apache
|
FROM php:apache
|
||||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/luketainton/hesk-docker"
|
LABEL org.opencontainers.image.source="https://gitlab.com/luketainton/hesk-docker"
|
||||||
COPY --chown=www-data:www-data hesk /srv
|
COPY --chown=www-data:www-data hesk /srv
|
||||||
COPY vhost.conf /etc/apache2/sites-enabled/000-default.conf
|
COPY vhost.conf /etc/apache2/sites-enabled/000-default.conf
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
|||||||
Reference in New Issue
Block a user