Skip to content

Commit 0118d4b

Browse files
committed
fix: update rust and use hashicorp vault
1 parent f4d14eb commit 0118d4b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/deploy.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,24 @@ jobs:
88
build:
99
name: Build
1010
runs-on: self-hosted
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- name: Check out the repo
1316
uses: actions/checkout@v4
1417

18+
- name: Import secrets
19+
id: secrets
20+
uses: hashicorp/vault-action@v2
21+
with:
22+
method: 'jwt'
23+
url: ${{ vars.HASHICORP_VAULT_URL }}
24+
role: ${{ vars.HASHICORP_VAULT_ROLE }}
25+
jwtGithubAudience: ${{ vars.HASHICORP_VAULT_AUD }}
26+
secrets: |
27+
kv/data/canister/api *
28+
1529
- name: Set up Docker Buildx
1630
uses: docker/setup-buildx-action@v3
1731

@@ -42,6 +56,7 @@ jobs:
4256
tags: ${{ steps.meta.outputs.tags }}
4357
labels: ${{ steps.meta.outputs.labels }}
4458
platforms: linux/arm64
59+
secret-envs: ${{ steps.secrets.outputs }}
4560
cache-to: type=registry,ref=ghcr.io/cnstr/api-cache,compression=zstd
4661
cache-from: type=registry,ref=ghcr.io/cnstr/api-cache
4762

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.66 as builder
1+
FROM rust:1.79 as builder
22
ENV UPLOAD_OPENAPI=true
33
WORKDIR /app
44

0 commit comments

Comments
 (0)