Archived
Add Docker build + Gitea Actions CI (self-host at reformedwitness.net)
build-and-publish / build (push) Successful in 3s
build-and-publish / build (push) Successful in 3s
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
.git
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
README.md
|
||||
@@ -0,0 +1,16 @@
|
||||
name: build-and-publish
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Log in to the Gitea registry
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.thebennett.net -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
- name: Build + push
|
||||
run: |
|
||||
docker build -t git.thebennett.net/reformedwitness/rwn-website:latest -t git.thebennett.net/reformedwitness/rwn-website:${{ github.sha }} .
|
||||
docker push git.thebennett.net/reformedwitness/rwn-website:latest
|
||||
docker push git.thebennett.net/reformedwitness/rwn-website:${{ github.sha }}
|
||||
@@ -0,0 +1,5 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM nginx:1.27-alpine
|
||||
COPY . /usr/share/nginx/html/
|
||||
RUN rm -f /usr/share/nginx/html/README.md /usr/share/nginx/html/Dockerfile /usr/share/nginx/html/.dockerignore
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user