From 66331e7925e91f7bd0a4b49b8079fb6198040c00 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 6 Mar 2021 17:02:17 +0000 Subject: [PATCH] Migrate to GitHub Container registry --- .github/workflows/build.yml | 18 ++++++++++++++++++ Dockerfile | 1 + 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5ee8f69 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build +on: + push: + branches: 'main' + +jobs: + build: + name: GitHub Container Registry + runs-on: ubuntu-latest + needs: [prepare-data] + steps: + - 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 + run: docker build . --file Dockerfile --tag ghcr.io/luketainton/documize:latest + - name: Push image to GitHub Container Registry + run: docker push ghcr.io/luketainton/documize:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index f13f4ba..5fce394 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM alpine:latest LABEL maintainer="Luke Tainton " +LABEL org.opencontainers.image.source="https://github.com/luketainton/documize-docker" ARG DOCUMIZE_VERSION=v3.6.0 RUN apk add --no-cache curl WORKDIR /opt