1 Commits

Author SHA1 Message Date
cbf6f0edc1 Version 4.2.3 2022-03-11 16:12:33 +00:00
4 changed files with 21 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ jobs:
name: GitHub Container Registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
run: echo ${{ secrets.PAT }} | docker login ghcr.io -u luketainton --password-stdin
- name: Build image for GitHub Container Registry

18
.gitlab-ci.yml Normal file
View File

@@ -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

View File

@@ -1,7 +1,7 @@
FROM alpine:latest
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
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