Skip to content

Commit

Permalink
chore: 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
M0Rf30 committed Feb 24, 2025
1 parent 424ad3f commit fe321cd
Show file tree
Hide file tree
Showing 22 changed files with 250 additions and 223 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Steps to reproduce the behavior
A clear and concise description of what you expected to happen.

**Logs**
Run the commands with `--verbose` and post the log here as a file upload
Run the commands and post the log here as a file upload
Attach also the output of `podman logs` or `docker logs`, possibly with `--latest` flag

**Desktop (please complete the following information):**
Expand Down
3 changes: 1 addition & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ linters:
disable:
# here some dropped deprecated checks
# reduce warning messages
- execinquery
- mnd
# here some custom dropped checks temporary disabled
# they will be enabled
- depguard
- exhaustruct
- exportloopref
- forbidigo
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- gofumpt
- gomnd
- ireturn
- typecheck
- wrapcheck
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com

version: 1
version: 2

before:
hooks:
Expand Down
22 changes: 11 additions & 11 deletions build/deploy/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ LABEL org.opencontainers.image.description="Package software with ease 📦"
LABEL org.opencontainers.image.vendor="M0Rf30"

RUN \
apk add --no-cache upx; \
wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz -O go.tar.gz; \
echo "9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;
apk add --no-cache upx; \
wget https://go.dev/dl/go1.24.0.linux-amd64.tar.gz -O go.tar.gz; \
echo "dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858 go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;

COPY . /project
WORKDIR /project
RUN \
CGO_ENABLED=0 \
CGO_ENABLED=0 \
go build \
-buildvcs=false \
-ldflags "-w -s" \
Expand All @@ -26,11 +26,11 @@ RUN \
FROM docker.io/alpine:latest
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apk add --no-cache \
apk add --no-cache \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc;
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc;

ENTRYPOINT ["yap"]
27 changes: 13 additions & 14 deletions build/deploy/amazon-1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ LABEL org.opencontainers.image.vendor="M0Rf30"

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
yum -y install curl tar; \
curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz --output go.tar.gz; \
echo "9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc; \
yum clean all
yum -y install curl tar; \
curl -sL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz --output go.tar.gz; \
echo "dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858 go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc; \
yum clean all

COPY . /project
WORKDIR /project
RUN \
CGO_ENABLED=0 \
CGO_ENABLED=0 \
go build \
-buildvcs=false \
-ldflags "-w -s" \
Expand All @@ -27,14 +27,13 @@ RUN \
FROM docker.io/amazonlinux:1
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
yum -y install \
yum -y install \
bash-completion \
ca-certificates \
rpm-build \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
yum clean all
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
yum clean all

ENV GOROOT=/usr/lib/go
ENV PATH /usr/lib/go/bin:$PATH:/go/bin
Expand Down
27 changes: 13 additions & 14 deletions build/deploy/amazon-2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ LABEL org.opencontainers.image.vendor="M0Rf30"

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
yum -y install curl tar; \
curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz --output go.tar.gz; \
echo "9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc; \
yum clean all
yum -y install curl tar; \
curl -sL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz --output go.tar.gz; \
echo "dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858 go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc; \
yum clean all

COPY . /project
WORKDIR /project
RUN \
CGO_ENABLED=0 \
CGO_ENABLED=0 \
go build \
-buildvcs=false \
-ldflags "-w -s" \
Expand All @@ -27,14 +27,13 @@ RUN \
FROM docker.io/amazonlinux:2
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
yum -y install \
yum -y install \
bash-completion \
ca-certificates \
rpm-build \
sudo; \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
yum clean all
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc; \
yum clean all

ENV GOROOT=/usr/lib/go
ENV PATH /usr/lib/go/bin:$PATH:/go/bin
Expand Down
12 changes: 6 additions & 6 deletions build/deploy/arch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ LABEL org.opencontainers.image.vendor="M0Rf30"

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
pacman -Syu --noconfirm go upx
pacman -Syu --noconfirm go upx

COPY . /project
WORKDIR /project
RUN \
CGO_ENABLED=0 \
CGO_ENABLED=0 \
go build \
-buildvcs=false \
-ldflags "-w -s" \
Expand All @@ -21,12 +21,12 @@ RUN \
FROM docker.io/archlinux:base
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
pacman -Syu --noconfirm \
pacman -Syu --noconfirm \
bash-completion \
ca-certificates \
sudo; \
rm -rf /var/cache/pacman/* \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc;
rm -rf /var/cache/pacman/* \
yap completion bash > /etc/bash_completion.d/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bashrc;

ENTRYPOINT ["yap"]
39 changes: 22 additions & 17 deletions build/deploy/debian-buster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ LABEL org.opencontainers.image.vendor="M0Rf30"
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends ca-certificates curl tar upx-ucl; \
curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz --output go.tar.gz; \
echo "9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
tar \
upx-ucl; \
curl -sL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz --output go.tar.gz; \
echo "dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858 go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;

COPY . /project
WORKDIR /project
RUN \
CGO_ENABLED=0 \
CGO_ENABLED=0 \
go build \
-buildvcs=false \
-ldflags "-w -s" \
Expand All @@ -30,16 +34,17 @@ RUN \
FROM docker.io/debian:buster
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
ln -sf /usr/share/zoneinfo/UTC /etc/localtime; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

ENV DEBIAN_FRONTEND=noninteractive
ENV GOROOT=/usr/lib/go
Expand Down
39 changes: 22 additions & 17 deletions build/deploy/debian-jessie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ LABEL org.opencontainers.image.vendor="M0Rf30"
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends ca-certificates curl tar upx-ucl; \
curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz --output go.tar.gz; \
echo "9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
tar \
upx-ucl; \
curl -sL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz --output go.tar.gz; \
echo "dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858 go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;

COPY . /project
WORKDIR /project
RUN \
CGO_ENABLED=0 \
CGO_ENABLED=0 \
go build \
-buildvcs=false \
-ldflags "-w -s" \
Expand All @@ -30,16 +34,17 @@ RUN \
FROM docker.io/debian:jessie
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
ln -sf /usr/share/zoneinfo/UTC /etc/localtime; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

ENV DEBIAN_FRONTEND=noninteractive
ENV GOROOT=/usr/lib/go
Expand Down
39 changes: 22 additions & 17 deletions build/deploy/debian-stretch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ LABEL org.opencontainers.image.vendor="M0Rf30"
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends ca-certificates curl tar upx-ucl; \
curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz --output go.tar.gz; \
echo "9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
tar \
upx-ucl; \
curl -sL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz --output go.tar.gz; \
echo "dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858 go.tar.gz" | sha256sum -c - ; \
tar -C /usr/lib -xf go.tar.gz; \
ln -sf /usr/lib/go/bin/go /usr/bin/go; \
ln -sf /usr/lib/go/bin/gofmt /usr/bin/gofmt; \
ln -sf /usr/share/doc/go /usr/lib/go/doc;

COPY . /project
WORKDIR /project
RUN \
CGO_ENABLED=0 \
CGO_ENABLED=0 \
go build \
-buildvcs=false \
-ldflags "-w -s" \
Expand All @@ -30,16 +34,17 @@ RUN \
FROM docker.io/debian:stretch
COPY --from=builder /usr/bin/yap /usr/bin/yap
RUN \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
apt-get update; \
apt-get upgrade; \
apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
sudo; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
ln -sf /usr/share/zoneinfo/UTC /etc/localtime; \
yap completion bash > /usr/share/bash-completion/completions/yap; \
echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

ENV DEBIAN_FRONTEND=noninteractive
ENV GOROOT=/usr/lib/go
Expand Down
Loading

0 comments on commit fe321cd

Please sign in to comment.