-
Notifications
You must be signed in to change notification settings - Fork 0
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
14 changed files
with
62 additions
and
79 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
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 |
---|---|---|
|
@@ -31,7 +31,6 @@ jobs: | |
git config --global user.email "[email protected]" | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
- name: Commit the changes | ||
run: | | ||
git commit -a -m "update version to ${{ steps.vars.outputs.tag }}, ready to publish v${{ steps.vars.outputs.tag }}" || true | ||
|
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 @@ | ||
dockers/alpine/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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM alpine:3.16 AS builder | ||
|
||
ARG VERSION=0.4.6 | ||
ARG TARGETPLATFORM | ||
ARG PLATFORM=${TARGETPLATFORM#linux/} | ||
|
||
WORKDIR /home/totebag | ||
|
||
RUN apk add --no-cache curl tar gzip \ | ||
&& curl -LO https://github.com/tamada/totebag/releases/download/v${VERSION}/totebag-${VERSION}_linux_${PLATFORM}.tar.gz \ | ||
&& tar xvfz totebag-${VERSION}_linux_${PLATFORM}.tar.gz | ||
|
||
FROM alpine:3.16 | ||
|
||
ARG VERSION=0.4.6 | ||
|
||
LABEL org.opencontainers.image.source https://github.com/tamada/totebag | ||
|
||
RUN apk add --no-cache libgcc musl-dev \ | ||
&& adduser -D nonroot \ | ||
&& mkdir -p /workdir | ||
|
||
COPY --from=builder /home/totebag/totebag-${VERSION}/totebag /opt/totebag/totebag | ||
|
||
WORKDIR /workdir | ||
USER nonroot | ||
|
||
ENTRYPOINT [ "/opt/totebag/totebag" ] | ||
|
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,22 @@ | ||
FROM rust:latest AS builder | ||
|
||
ARG VERSION=0.4.6 | ||
ARG TARGETPLATFORM | ||
|
||
WORKDIR /work/totebag | ||
|
||
COPY . . | ||
RUN cargo build --release | ||
|
||
FROM gcr.io/distroless/cc | ||
|
||
ARG VERSION=0.4.6 | ||
|
||
LABEL org.opencontainers.image.source https://github.com/tamada/totebag | ||
|
||
COPY --from=builder /work/totebag/target/release/totebag /opt/totebag/totebag | ||
|
||
WORKDIR /workdir | ||
USER nonroot | ||
|
||
ENTRYPOINT [ "/opt/totebag/totebag" ] |
This file was deleted.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
docs/config/_default/config.toml → docs/config/_default/hugo.toml
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,3 +1,5 @@ | ||
baseURL = "https://tamada.github.io/totebag/" | ||
defaultContentLanguage = "en" | ||
languageCode = "en" | ||
languageCode = "en" | ||
enableEmoji = true | ||
math = true |
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,20 +0,0 @@ | ||
# config/_default/languages.en.toml | ||
languageCode = "en" | ||
languageName = "English" | ||
|
||
title = "totebag" | ||
copyright = "(C) Copyright, 2024, Haruaki Tamada" | ||
|
||
[params] | ||
dateFormat = "2006-01-02" | ||
description = "A tool for archiving files and directories and extracting several archive formats." | ||
|
||
[params.author] | ||
name = "Haruaki Tamada" | ||
image = "assets/authors/harry.png" | ||
headline = "Resercher/Developer" | ||
bio = "Ph.D (Engineering), The main research area: software engineering, and software protection." | ||
links = [ | ||
{ github = "https://github.com/tamada" }, | ||
{ twitter = "https://twitter.com/tama5" } | ||
] | ||
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,2 +1,2 @@ | ||
[[imports]] | ||
path = "github.com/jpanther/congo/v2" | ||
path = "github.com/maolonglong/hugo-simple" |
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,10 +0,0 @@ | ||
enableCodeCopy = true | ||
|
||
[header] | ||
logo = "logo.jpeg" | ||
|
||
[article] | ||
invertPagination = true | ||
|
||
[list] | ||
groupByYear = false | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github.com/jpanther/congo/v2 v2.8.2 h1:UNg7225ZqLSt9zu0xBOh5iM9TXnuNG1Ta9eSsioHTEE= | ||
github.com/jpanther/congo/v2 v2.8.2/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= | ||
github.com/maolonglong/hugo-simple v0.0.0-20240614140236-133917cadf69 h1:wy6ctoFp7SrEyI/A0UGzVocdn19baP1nCzvmcbAavso= | ||
github.com/maolonglong/hugo-simple v0.0.0-20240614140236-133917cadf69/go.mod h1:RCoYRfX65nAcc7yY8C5Xn3ynVroBIY//UHa2wcJpQtw= |
This file was deleted.
Oops, something went wrong.