From 1c1adb3e748543222a7552fe0ed55652502eb4bf Mon Sep 17 00:00:00 2001 From: Haruaki Tamada Date: Tue, 21 May 2024 11:56:01 +0900 Subject: [PATCH 1/2] fix github action failure. add checkout action before build and push --- .github/workflows/publish.yaml | 3 +++ templates/README.md | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6effa32..d04b760 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -158,6 +158,9 @@ jobs: type=sha,prefix=,suffix=,format=short type=raw,value=${{ needs.publish.outputs.tag }} + - name: Checkout the project + uses: actions/checkout@v4 + - name: Build and push uses: docker/build-push-action@v5 with: diff --git a/templates/README.md b/templates/README.md index 762ca6e..8aafdc5 100644 --- a/templates/README.md +++ b/templates/README.md @@ -2,6 +2,7 @@ [![Version](https://shields.io/badge/Version-$VERSION-blue)](https://github.com/tamada/totebag/releases/tag/v$VERSION) [![MIT License](https://shields.io/badge/License-MIT-blue)](https://github.com/tamada/totebag/blob/main/LICENSE) +[![docker](https://shields.io/badge/Docker-$VERSION-blue?logo=docker)](https://github.com/tamada/totebag/pkgs/container/totebag) [![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) @@ -52,6 +53,15 @@ Supported archive formats: brew install tamada/tap/totebag ``` +## :whale: Docker + +```sh +docker run -it --rm -v $PWD:/workdir ghcr.io/tamada/totebag:$VERSION [OPTIONS] [ARGUMENTS]... +``` + +- **Working directory**: `/workdir` +- **User**: `nonroot` + ## About ### Authors From 8a3b6f3742c6d658a8ea63e2bc4ad8f56511d774 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 21 May 2024 02:56:26 +0000 Subject: [PATCH 2/2] update version to 0.4.2, ready to publish v0.4.2 --- Cargo.toml | 2 +- Dockerfile | 4 ++-- README.md | 12 +++++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 314771d..adbe8cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "totebag" -version = "0.4.1" +version = "0.4.2" description = "A tool for archiving files and directories and extracting several archive formats." repository = "https://github.com/tamada/totebag" readme = "README.md" diff --git a/Dockerfile b/Dockerfile index 781426d..4415a0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.16 AS builder -ARG VERSION=0.4.1 +ARG VERSION=0.4.2 ARG TARGETPLATFORM ARG PLATFORM=${TARGETPLATFORM#linux/} @@ -12,7 +12,7 @@ RUN apk add --no-cache curl tar gzip \ FROM alpine:3.16 -ARG VERSION=0.4.1 +ARG VERSION=0.4.2 LABEL org.opencontainers.image.source https://github.com/tamada/totebag diff --git a/README.md b/README.md index 7759736..a63c11e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # totebag -[![Version](https://shields.io/badge/Version-0.4.1-blue)](https://github.com/tamada/totebag/releases/tag/v0.4.1) +[![Version](https://shields.io/badge/Version-0.4.2-blue)](https://github.com/tamada/totebag/releases/tag/v0.4.2) [![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.2-blue?logo=docker)](https://github.com/tamada/totebag/pkgs/container/totebag) [![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) @@ -52,6 +53,15 @@ Supported archive formats: brew install tamada/tap/totebag ``` +## :whale: Docker + +```sh +docker run -it --rm -v $PWD:/workdir ghcr.io/tamada/totebag:0.4.2 [OPTIONS] [ARGUMENTS]... +``` + +- **Working directory**: `/workdir` +- **User**: `nonroot` + ## About ### Authors