Migrate to GitHub Container registry

This commit is contained in:
2021-03-06 17:02:17 +00:00
parent 20c899e3d5
commit 66331e7925
2 changed files with 19 additions and 0 deletions

18
.github/workflows/build.yml vendored Normal file
View File

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

View File

@@ -1,5 +1,6 @@
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
RUN apk add --no-cache curl
WORKDIR /opt