@@ -12,38 +12,51 @@ COPY_METADATA:
12
12
COPY --dir ".git/" "./"
13
13
14
14
15
- rust-base :
16
- FROM rust:1.70.0
15
+ alpine-base :
16
+ FROM alpine:3.20.3@sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a
17
+ # renovate: datasource=repology depName=alpine_3_20/bash versioning=loose
18
+ ENV BASH_VERSION= "5.2.26-r0"
19
+ RUN apk add --no-cache bash= $BASH_VERSION
17
20
WORKDIR "/nasm-x86-shellcode-generator"
18
21
19
22
23
+ rust-base :
24
+ FROM +alpine-base
25
+ # renovate: datasource=repology depName=alpine_3_20/rust versioning=loose
26
+ ENV RUST_VERSION= "1.78.0-r0"
27
+ RUN apk add --no-cache cargo= $RUST_VERSION
28
+
29
+
20
30
check-clean-git-history :
21
31
FROM +rust-base
22
- RUN cargo install clean_git_history --version 0.1.2 --locked
32
+ # renovate: datasource=github-releases depName=DeveloperC286/clean_git_history
33
+ ENV CLEAN_GIT_HISTORY_VERSION= "v0.2.0"
34
+ RUN wget -O - "https://github.com/DeveloperC286/clean_git_history/releases/download/${CLEAN_GIT_HISTORY_VERSION}/x86_64-unknown-linux-musl.gz" | gzip -d > /usr/bin/clean_git_history && chmod 755 /usr/bin/clean_git_history
23
35
DO +COPY_METADATA
24
36
ARG from_reference= "origin/HEAD"
25
37
RUN ./ci/check-clean-git-history.sh --from-reference "${from_reference}"
26
38
27
39
28
40
check-conventional-commits-linting :
29
41
FROM +rust-base
30
- RUN cargo install conventional_commits_linter --version 0.12.3 --locked
42
+ # renovate: datasource=github-releases depName=DeveloperC286/conventional_commits_linter
43
+ ENV CONVENTIONAL_COMMITS_LINTER_VERSION= "v0.13.0"
44
+ RUN wget -O - "https://github.com/DeveloperC286/conventional_commits_linter/releases/download/${CONVENTIONAL_COMMITS_LINTER_VERSION}/x86_64-unknown-linux-musl.gz" | gzip -d > /usr/bin/conventional_commits_linter && chmod 755 /usr/bin/conventional_commits_linter
31
45
DO +COPY_METADATA
32
46
ARG from_reference= "origin/HEAD"
33
47
RUN ./ci/check-conventional-commits-linting.sh --from-reference "${from_reference}"
34
48
35
49
36
50
golang-base :
37
- FROM golang:1.20.13
38
- ENV GOPROXY= direct
39
- ENV CGO_ENABLED= 0
40
- ENV GOOS= linux
41
- ENV GOARCH= amd64
51
+ FROM golang:1.22.1
52
+ WORKDIR "/nasm-x86-shellcode-generator"
42
53
43
54
44
55
yaml-formatting-base :
45
56
FROM +golang-base
46
- RUN go install github.com/google/yamlfmt/cmd/yamlfmt@v0.10.0
57
+ # renovate: datasource=github-releases depName=google/yamlfmt
58
+ ENV YAMLFMT_VERSION= "v0.10.0"
59
+ RUN go install github.com/google/yamlfmt/cmd/yamlfmt@$YAMLFMT_VERSION
47
60
COPY ".yamlfmt" "./"
48
61
DO +COPY_CI_DATA
49
62
@@ -61,7 +74,9 @@ fix-yaml-formatting:
61
74
62
75
check-github-actions-workflows-linting :
63
76
FROM +golang-base
64
- RUN go install github.com/rhysd/actionlint/cmd/actionlint@v1.6.26
77
+ # renovate: datasource=github-releases depName=rhysd/actionlint
78
+ ENV ACTIONLINT_VERSION= "v1.6.26"
79
+ RUN go install github.com/rhysd/actionlint/cmd/actionlint@$ACTIONLINT_VERSION
65
80
DO +COPY_CI_DATA
66
81
RUN ./ci/check-github-actions-workflows-linting.sh
67
82
@@ -73,6 +88,6 @@ COPY_SOURCECODE:
73
88
74
89
75
90
compile :
76
- FROM gcc:13.2.0
91
+ FROM +rust-base
77
92
DO +COPY_SOURCECODE
78
93
RUN ./ci/compile.sh
0 commit comments