diff --git a/.deepsource.toml b/.github-archive/.deepsource.toml similarity index 100% rename from .deepsource.toml rename to .github-archive/.deepsource.toml diff --git a/renovate.json b/.github-archive/renovate.json similarity index 100% rename from renovate.json rename to .github-archive/renovate.json diff --git a/.github/workflows/build.yml b/.github-archive/workflows/build.yml similarity index 100% rename from .github/workflows/build.yml rename to .github-archive/workflows/build.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ace1c70 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index c083f95..800c63a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM php:apache LABEL maintainer="Luke Tainton " -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 && \