Skip to content

Commit

Permalink
fix: update rust and use hashicorp vault
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Jul 22, 2024
1 parent f4d14eb commit 1828042
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,24 @@ jobs:
build:
name: Build
runs-on: self-hosted
permissions:
contents: read
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Import secrets
id: secrets
uses: hashicorp/vault-action@v2
with:
method: 'jwt'
url: ${{ vars.HASHICORP_VAULT_URL }}
role: ${{ vars.HASHICORP_VAULT_ROLE }}
jwtGithubAudience: ${{ vars.HASHICORP_VAULT_AUD }}
secrets: |
kv/data/canister/api/*
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -42,6 +56,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm64
secret-envs: ${{ steps.secrets.outputs }}
cache-to: type=registry,ref=ghcr.io/cnstr/api-cache,compression=zstd
cache-from: type=registry,ref=ghcr.io/cnstr/api-cache

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.66 as builder
FROM rust:1.79 as builder
ENV UPLOAD_OPENAPI=true
WORKDIR /app

Expand Down

0 comments on commit 1828042

Please sign in to comment.