Skip to content

Commit 3eceb3b

Browse files
authored
build(dockerfile): improve caching (#130)
* build(dockerfile): improve caching * feat: use `tracing-logfmt`
1 parent e03cf04 commit 3eceb3b

File tree

13 files changed

+135
-140
lines changed

13 files changed

+135
-140
lines changed

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Check deps
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020

2121
- name: Check deps
2222
uses: embarkstudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15

.github/workflows/deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Deps Review
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515

1616
- name: Dependency Review
1717
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
permissions:
1515
packages: write
1616
steps:
17-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- name: Setup Docker Buildx
2020
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
2121

2222
- name: Log into registry
2323
if: github.event_name != 'pull_request'
24-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
24+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
2525
with:
2626
registry: ghcr.io
2727
username: ${{ github.actor }}
@@ -38,7 +38,7 @@ jobs:
3838
type=ref,event=branch
3939
type=ref,event=pr
4040
41-
- name: Build and optionaly Push Image
41+
- name: Build and optionally Push Image
4242
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
4343
with:
4444
context: .

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Lint code
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

2020
- name: Install Rust toolchain
2121
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
@@ -37,7 +37,7 @@ jobs:
3737
os: [ubuntu-latest]
3838
runs-on: ${{ matrix.os }}
3939
steps:
40-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
40+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4141

4242
- name: Install Rust toolchain
4343
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
@@ -48,7 +48,7 @@ jobs:
4848
- name: Rust Cache
4949
uses: swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
5050

51-
- uses: taiki-e/install-action@83961fc0a2afe7f045535b5741d9a6418d7e1168 # v2.66.0
51+
- uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
5252
with:
5353
tool: nextest,cargo-llvm-cov
5454

@@ -68,7 +68,7 @@ jobs:
6868
permissions:
6969
id-token: write
7070
steps:
71-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
71+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7272

7373
- name: Install Rust toolchain
7474
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
@@ -104,7 +104,7 @@ jobs:
104104
arch: [x64]
105105
runs-on: ${{ matrix.os }}
106106
steps:
107-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
107+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
108108

109109
- name: Set version in Cargo.toml
110110
run: |
@@ -133,7 +133,7 @@ jobs:
133133
DRAFT: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
134134
runs-on: ubuntu-latest
135135
steps:
136-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
136+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
137137
with:
138138
fetch-depth: 0
139139

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ repos:
1717
args: [--fix=lf]
1818

1919
- repo: https://github.com/rbubley/mirrors-prettier
20-
rev: v3.7.4
20+
rev: v3.8.1
2121
hooks:
2222
- id: prettier
2323

2424
- repo: https://github.com/crate-ci/typos
25-
rev: v1.42.0
25+
rev: v1.42.3
2626
hooks:
2727
- id: typos
2828

2929
- repo: https://github.com/python-jsonschema/check-jsonschema
30-
rev: 0.36.0
30+
rev: 0.36.1
3131
hooks:
3232
- id: check-github-workflows
3333
- id: check-renovate
@@ -38,7 +38,7 @@ repos:
3838
- id: actionlint
3939

4040
- repo: https://github.com/zizmorcore/zizmor-pre-commit
41-
rev: v1.20.0
41+
rev: v1.22.0
4242
hooks:
4343
- id: zizmor
4444
args: [--fix=safe]

.typos.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
extend-exclude = ["CHANGELOG.md", "Cargo.lock"]
33

44
[default]
5-
extend-ignore-re = [
6-
"[a-zA-Z]{0,3}", # Ignore short words
5+
extend-ignore-words-re = [
6+
"^[A-Za-z]{1,3}$", # Ignore short words
7+
]
8+
extend-ignore-identifiers-re = [
9+
"^[A-Za-z]{1,3}$", # Ignore short identifiers
710
]

.vscode/extensions.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"recommendations": [
3-
"fill-labs.dependi",
4-
"rust-lang.rust-analyzer", // require the rust-analyzer binary to be in $PATH
5-
"swellaby.vscode-rust-test-adapter"
3+
"rust-lang.rust-analyzer" // require the rust-analyzer binary to be in $PATH
64
]
75
}

0 commit comments

Comments
 (0)