-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
127 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ _site | |
gojekyll | ||
gojekyll-race | ||
coverage.out | ||
/Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ _site | |
/gojekyll | ||
/gojekyll-race | ||
coverage.out | ||
|
||
dist/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
goarch: | ||
- "amd64" | ||
- "386" | ||
- "arm64" | ||
- "arm" | ||
- "riscv64" | ||
ldflags: -s -w -X gojekyll/cmd.Version={{.Version}} -X gojekyll/cmd.BuildDate={{.Date}} | ||
|
||
archives: | ||
- format: tar.gz | ||
# this name template makes the OS and Arch compatible with the results of uname. | ||
name_template: >- | ||
{{ .ProjectName }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
|
||
kos: | ||
- repository: danog/gojekyll | ||
tags: | ||
- '{{.Version}}' | ||
- latest | ||
bare: true | ||
preserve_import_paths: false | ||
platforms: | ||
- darwin/amd64 | ||
- darwin/arm64 | ||
- linux/386 | ||
- linux/amd64 | ||
- linux/riscv64 | ||
- linux/arm | ||
- linux/arm64 | ||
- windows/amd64 | ||
- windows/arm64 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
FROM golang:1.8.3-alpine | ||
FROM alpine:latest | ||
|
||
ADD . /go/src/github.com/osteele/gojekyll | ||
|
||
RUN \ | ||
apk add --update gcc g++ git make python py-pip && \ | ||
pip install Pygments && \ | ||
cd $GOPATH/src/github.com/osteele/gojekyll && \ | ||
go get -v && \ | ||
make install && \ | ||
rm -rf /var/cache/apk/* && \ | ||
rm -rf $GOPATH/src/* | ||
RUN apk add libstdc++ libgcc | ||
|
||
COPY gojekyll /usr/local/bin/gojekyll | ||
|
||
EXPOSE 4000 | ||
|
||
ENTRYPOINT ["/go/bin/gojekyll"] | ||
ENTRYPOINT ["/usr/local/bin/gojekyll"] | ||
|
||
CMD [ "--help" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.