diff --git a/.github/workflows/build.yml b/.github-archive/.github/workflows/build.yml similarity index 100% rename from .github/workflows/build.yml rename to .github-archive/.github/workflows/build.yml 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/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..70062e0 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +stages: +- build + +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 5fce394..c240c30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest LABEL maintainer="Luke Tainton " -LABEL org.opencontainers.image.source="https://github.com/luketainton/documize-docker" -ARG DOCUMIZE_VERSION=v3.6.0 +LABEL org.opencontainers.image.source="https://gitlab.com/luketainton/documize-docker" +ARG DOCUMIZE_VERSION=v4.2.3 RUN apk add --no-cache curl WORKDIR /opt RUN curl -L -o documize "https://github.com/documize/community/releases/download/${DOCUMIZE_VERSION}/documize-community-linux-amd64" && chmod 755 documize