Skip to content

Commit 6316ecb

Browse files
committed
fix CI
1 parent 01bf947 commit 6316ecb

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ jobs:
7272
with:
7373
fetch-depth: 0
7474

75-
- name: Configure sccache
76-
uses: actions/github-script@v7
77-
with:
78-
script: |
79-
core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
80-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
81-
8275
- name: Set up Docker Buildx
8376
uses: docker/setup-buildx-action@v3
8477

@@ -104,8 +97,8 @@ jobs:
10497
cache-from: type=gha
10598
cache-to: type=gha,mode=max
10699
secret-envs: |
107-
ACTIONS_RUNTIME_TOKEN=ACTIONS_RUNTIME_TOKEN
108-
ACTIONS_RESULTS_URL=ACTIONS_RESULTS_URL
100+
ACTIONS_RUNTIME_TOKEN
101+
ACTIONS_CACHE_URL
109102
110103
- name: Create GitHub release tag
111104
uses: marvinpinto/action-automatic-releases@latest

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ COPY Cargo.toml Cargo.lock ./
2121
COPY src ./src
2222
COPY example.config.yaml messageTamplate.default.md ./
2323

24-
RUN --mount=type=secret,id=ACTIONS_RESULTS_URL,env=ACTIONS_RESULTS_URL \
25-
--mount=type=secret,id=ACTIONS_RUNTIME_TOKEN,env=ACTIONS_RUNTIME_TOKEN \
24+
RUN --mount=type=secret,id=ACTIONS_RUNTIME_TOKEN \
25+
--mount=type=secret,id=ACTIONS_CACHE_URL \
26+
export ACTIONS_RUNTIME_TOKEN=$(cat /run/secrets/ACTIONS_RUNTIME_TOKEN) && \
27+
export ACTIONS_CACHE_URL=$(cat /run/secrets/ACTIONS_CACHE_URL) && \
2628
cargo build --release && \
2729
sccache --show-stats || echo "sccache stats unavailable"
2830

0 commit comments

Comments
 (0)