Skip to content

Commit

Permalink
publish site
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Jun 25, 2024
1 parent b5a1f18 commit 75e7610
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 79 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
artifact_name: ${{ needs.setup.outputs.appname }}
asset_name: ${{ needs.setup.outputs.appname }}-${{ needs.setup.outputs.tag }}_darwin_arm64


steps:
# initialization
- name: Checkout the project
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/update-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 0 additions & 29 deletions Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions Dockerfile
29 changes: 29 additions & 0 deletions dockers/alpine/Dockerfile
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" ]

22 changes: 22 additions & 0 deletions dockers/distroless/Dockerfile
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" ]
5 changes: 0 additions & 5 deletions docs/config.toml

This file was deleted.

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
20 changes: 0 additions & 20 deletions docs/config/_default/language.en.toml
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" }
]
2 changes: 1 addition & 1 deletion docs/config/_default/module.toml
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"
10 changes: 0 additions & 10 deletions docs/config/_default/params.toml
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
8 changes: 3 additions & 5 deletions docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ weight: 1
date: 2024-06-11
---

{{< github_badges >}}
[![Version](https://shields.io/badge/Version-0.4.6-blue)](https://github.com/tamada/totebag/releases/tag/v0.4.6)
[![MIT License](https://shields.io/badge/License-MIT-blue)](https://github.com/tamada/totebag/blob/main/LICENSE)
[![docker](https://shields.io/badge/Docker-0.4.6-blue?logo=docker)](https://github.com/tamada/totebag/pkgs/container/totebag)
{{< /github_badges >}}

{{< github_badges >}}[![build](https://github.com/tamada/totebag/actions/workflows/build.yaml/badge.svg)](https://github.com/tamada/totebag/actions/workflows/build.yaml)
[![build](https://github.com/tamada/totebag/actions/workflows/build.yaml/badge.svg)](https://github.com/tamada/totebag/actions/workflows/build.yaml)
[![Rust Report Card](https://rust-reportcard.xuri.me/badge/github.com/tamada/totebag)](https://rust-reportcard.xuri.me/report/github.com/tamada/totebag)
[![Coverage Status](https://coveralls.io/repos/github/tamada/totebag/badge.svg)](https://coveralls.io/github/tamada/totebag)
{{< /github_badges >}}

## :speaking_head: Desctiption

Expand All @@ -24,4 +21,5 @@ The tool can extract archive files and archive files and directories.

- [:anchor: Install](install)
- [:running_woman: Usage](usage)
- [:smile: About](about)
- [:smile: About](about)

2 changes: 1 addition & 1 deletion docs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/tamada/totebag

go 1.22.4

require github.com/jpanther/congo/v2 v2.8.2 // indirect
require github.com/maolonglong/hugo-simple v0.0.0-20240614140236-133917cadf69 // indirect
4 changes: 2 additions & 2 deletions docs/go.sum
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=
3 changes: 0 additions & 3 deletions docs/layouts/shortcodes/github_badges.html

This file was deleted.

0 comments on commit 75e7610

Please sign in to comment.