Migrate to GitHub Container registry
This commit is contained in:
18
.github/workflows/build.yml
vendored
Normal file
18
.github/workflows/build.yml
vendored
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user