commit
31caafda3e
@ -0,0 +1,9 @@ |
||||
*~ |
||||
*.bak |
||||
|
||||
/.pub |
||||
/.git |
||||
/README.md |
||||
/.drone.yml |
||||
/.gitignore |
||||
/.dockerignore |
@ -0,0 +1,32 @@ |
||||
--- |
||||
kind: pipeline |
||||
name: default |
||||
|
||||
steps: |
||||
- name: build-image-push |
||||
image: plugins/kaniko |
||||
settings: |
||||
registry: r.mills.io |
||||
repo: r.mills.io/prologic/salty.im |
||||
tags: latest |
||||
username: |
||||
from_secret: docker_username |
||||
password: |
||||
from_secret: docker_password |
||||
|
||||
- name: notify-irc |
||||
image: plugins/webhook |
||||
settings: |
||||
urls: |
||||
- https://msgbus.mills.io/ci.mills.io |
||||
when: |
||||
status: |
||||
- success |
||||
- failure |
||||
|
||||
trigger: |
||||
branch: |
||||
- master |
||||
event: |
||||
- cron |
||||
- push |
@ -0,0 +1,4 @@ |
||||
*~ |
||||
*.bak |
||||
|
||||
/.pub |
@ -0,0 +1,25 @@ |
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
||||
<link rel="stylesheet" href="/water.min.css"> |
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> |
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> |
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> |
||||
<title>{{ title }}</title> |
||||
</head> |
||||
<body> |
||||
{{ content }} |
||||
<hr /> |
||||
<footer> |
||||
<small> |
||||
Last modified <time datetime="{{ date +%Y-%m-%dT%H:%M:%SZ%:z }}">{{ date }}</time> · |
||||
Copyright © 2021-present All Rights Reserved James Mills · |
||||
Built with <a href="https://git.mills.io/prologic/zs">zs |
||||
</small> |
||||
</footer> |
||||
</body> |
||||
<script data-goatcounter="https://stats.salty.im/count" |
||||
async src="//salty.im/count.js"></script> |
||||
</html> |
@ -0,0 +1,34 @@ |
||||
# Build |
||||
FROM golang:alpine AS build |
||||
|
||||
ENV CGO_ENABLED=0 |
||||
|
||||
RUN apk add --no-cache -U build-base git make curl ca-certificates |
||||
|
||||
RUN mkdir -p /src |
||||
|
||||
WORKDIR /src |
||||
|
||||
# Copy Makefile |
||||
COPY Makefile ./ |
||||
|
||||
# Install deps |
||||
RUN make deps |
||||
|
||||
# Copy content |
||||
COPY . . |
||||
|
||||
# Build the site |
||||
RUN make build |
||||
|
||||
# Runtime |
||||
FROM scratch |
||||
|
||||
WORKDIR / |
||||
VOLUME /data |
||||
|
||||
COPY --from=build /go/bin/static /static |
||||
COPY --from=build /src/.pub /data |
||||
|
||||
ENTRYPOINT ["/static"] |
||||
CMD ["-r", "/data"] |
@ -0,0 +1,29 @@ |
||||
-include environ.inc |
||||
.PHONY: deps dev build install image release test clean |
||||
|
||||
GOCMD=go
|
||||
|
||||
all: build |
||||
|
||||
deps: |
||||
@$(GOCMD) install git.mills.io/prologic/zs@latest
|
||||
@$(GOCMD) install git.mills.io/prologic/static@latest
|
||||
|
||||
dev : DEBUG=1 |
||||
dev : build |
||||
@zs watch
|
||||
|
||||
build: |
||||
@zs build
|
||||
|
||||
ifeq ($(PUBLISH), 1) |
||||
image: |
||||
@docker build -t r.mills.io/prologic/salty.im
|
||||
@docker push r.mills.io/prologic/salty.im
|
||||
else |
||||
image: |
||||
@docker build -t r.mills.io/prologic/salty.im .
|
||||
endif |
||||
|
||||
clean: |
||||
@git clean -f -d -X
|
@ -0,0 +1,5 @@ |
||||
# salty.im |
||||
|
||||
[](https://ci.mills.io/prologic/salty.im) |
||||
|
||||
[salty.im](https://salty.im) landing page |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue