Move to GitLab

This commit is contained in:
Luke Tainton
2022-01-05 22:56:08 +00:00
parent 2c117f14cb
commit ddda2e97e4
5 changed files with 21 additions and 1 deletions

20
.gitlab-ci.yml Normal file
View 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

View File

@@ -1,6 +1,6 @@
FROM php:apache
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 vhost.conf /etc/apache2/sites-enabled/000-default.conf
RUN apt-get update && \