more make
ci.vdhsn.com/push Build encountered an error
Details
ci.vdhsn.com/push Build encountered an error
Details
parent
743eebcd23
commit
f8999be8a2
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.19 as build
|
||||
FROM docker.io/golang:1.19 as build
|
||||
|
||||
RUN go install git.sr.ht/~sircmpwn/openring@latest
|
||||
RUN go install --tags extended github.com/gohugoio/hugo@latest
|
||||
|
|
@ -8,5 +8,5 @@ WORKDIR /go/src/blog
|
|||
|
||||
RUN make public
|
||||
|
||||
FROM nginx
|
||||
COPY --from=build /go/src/blog/public /usr/share/nginx/html
|
||||
FROM docker.io/nginx
|
||||
COPY --from=build /go/src/blog/public /usr/share/nginx/html
|
||||
|
|
|
|||
22
Makefile
22
Makefile
|
|
@ -3,11 +3,11 @@ GOBIN = $(shell go env GOPATH)/bin
|
|||
|
||||
.PHONY: serve
|
||||
serve: assets
|
||||
$(HUGO_BIN) server -D --log -w --bind 0.0.0.0
|
||||
@hugo server -D --log -w --bind 0.0.0.0
|
||||
|
||||
.PHONY: new-post
|
||||
new-post:
|
||||
@$(HUGO_BIN) new posts/$(TITLE).md
|
||||
@hugo new posts/$(TITLE).md
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
|
|
@ -23,36 +23,36 @@ test-publish: build
|
|||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rm -rf ./public ./resources ./assets/css/syntax.* ./layouts/partials/single/footer.html
|
||||
@rm -rf ./public ./resources ./themes ./assets/css/syntax.* ./layouts/partials/single/footer.html
|
||||
|
||||
.PHONY: tools
|
||||
tools: $(HUGO_BIN) $(OPENRING_BIN)
|
||||
|
||||
HUGO_BIN = $(GOBIN)/hugo
|
||||
$(HUGO_BIN):
|
||||
@go install --tags extended github.com/gohugoio/hugo@latest
|
||||
go install --tags extended github.com/gohugoio/hugo@latest
|
||||
|
||||
OPENRING_BIN = $(GOBIN)/openring
|
||||
$(OPENRING_BIN):
|
||||
@go install git.sr.ht/~sircmpwn/openring@latest
|
||||
go install git.sr.ht/~sircmpwn/openring@latest
|
||||
|
||||
public: $(HUGO_BIN) ./themes/lines ./assets/css/syntax.light.css ./assets/css/syntax.dark.css ./layouts/partials/single/footer.html
|
||||
$(HUGO_BIN) --verbose --gc --minify --templateMetrics --templateMetricsHints --enableGitInfo --environment production
|
||||
$(HUGO_BIN) --verbose --gc --minify --templateMetrics --templateMetricsHints --enableGitInfo --environment production
|
||||
|
||||
./themes/lines:
|
||||
git submodule update
|
||||
@git submodule update --init
|
||||
|
||||
./assets/css:
|
||||
mkdir -p ./assets/css
|
||||
@mkdir -p ./assets/css
|
||||
|
||||
./assets/css/syntax.light.css: $(HUGO_BIN) ./assets/css
|
||||
$(HUGO_BIN) gen chromastyles --style=github > assets/css/syntax.light.css
|
||||
@$(HUGO_BIN) gen chromastyles --style=github > assets/css/syntax.light.css
|
||||
|
||||
./assets/css/syntax.dark.css: $(HUGO_BIN) ./assets/css
|
||||
$(HUGO_BIN) gen chromastyles --style=github-dark > assets/css/syntax.dark.css
|
||||
@$(HUGO_BIN) gen chromastyles --style=github-dark > assets/css/syntax.dark.css
|
||||
|
||||
./layouts/partials/single/footer.html: $(OPENRING_BIN)
|
||||
mkdir -p ./layouts/partials/single/
|
||||
@mkdir -p ./layouts/partials/single/
|
||||
$(OPENRING_BIN) \
|
||||
-s https://dave.cheney.net/feed/atom \
|
||||
-s https://tech.davis-hansson.com/index.xml \
|
||||
|
|
|
|||
|
|
@ -1,79 +0,0 @@
|
|||
<section class="webring">
|
||||
<h3>Articles from blogs I follow</h3>
|
||||
<section class="articles">
|
||||
|
||||
<div class="article">
|
||||
<h4 class="title">
|
||||
<a href="https://drewdevault.com/2023/01/24/2023-01-24-FOSDEM.html" target="_blank" rel="noopener">My plans at FOSDEM: SourceHut, Hare, and Helios</a>
|
||||
</h4>
|
||||
<p class="summary">FOSDEM is right around the corner, and finally in person after long years of
|
||||
dealing with COVID. I’ll be there again this year, and I’m looking forward to
|
||||
it! I have four slots on the schedule (wow! Thanks for arranging these, FOSDEM
|
||||
team) and I’ll be talkin…</p>
|
||||
<small class="source">
|
||||
via <a href="https://drewdevault.com">Drew DeVault's blog</a>
|
||||
</small>
|
||||
<small class="date">January 24, 2023</small>
|
||||
</div>
|
||||
|
||||
<div class="article">
|
||||
<h4 class="title">
|
||||
<a href="https://tech.davis-hansson.com/p/goog-news-headlines/" target="_blank" rel="noopener">YSK: Google allows spoofing news headlines in search results</a>
|
||||
</h4>
|
||||
<p class="summary">A minor scandal unfolding in the Swedish election highlights a way to influence news narratives:
|
||||
Google allows you to set headlines for news articles in search results by paying for adwords placements of legitimate articles.
|
||||
This is being used by political …</p>
|
||||
<small class="source">
|
||||
via <a href="https://tech.davis-hansson.com/">Jacob Davis-Hansson</a>
|
||||
</small>
|
||||
<small class="date">September 9, 2022</small>
|
||||
</div>
|
||||
|
||||
<div class="article">
|
||||
<h4 class="title">
|
||||
<a href="https://blog.benjojo.co.uk/post/multipath-without-mptcp" target="_blank" rel="noopener">Going multipath without Multipath TCP
</a>
|
||||
</h4>
|
||||
<p class="summary">Going multipath without Multipath TCP
|
||||
|
||||
|
||||
|
||||
Gigabit ethernet has been around for a long time, it’s so ubiquitous that there is a very strong chance that if you have a RJ-45 port on your compu
|
||||
</p>
|
||||
<small class="source">
|
||||
via <a href="https://blog.benjojo.co.uk">benjojo blog</a>
|
||||
</small>
|
||||
<small class="date">February 24, 2022</small>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<p class="attribution">
|
||||
Generated by
|
||||
<a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
|
||||
</p>
|
||||
</section>
|
||||
<style>
|
||||
.webring .articles {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: -0.5rem;
|
||||
}
|
||||
.webring .title {
|
||||
margin: 0;
|
||||
}
|
||||
.webring .article {
|
||||
flex: 1 1 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
min-width: 10rem;
|
||||
}
|
||||
.webring .summary {
|
||||
font-size: 0.8rem;
|
||||
flex: 1 1 0;
|
||||
}
|
||||
.webring .attribution {
|
||||
text-align: right;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit a85d561cac091fcd73a248c3d3c426d39ac15155
|
||||
Loading…
Reference in New Issue