Skip to content

Commit 6e336db

Browse files
committed
build: experimenting -- do not merge
1 parent 1ea86ea commit 6e336db

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Secrets Testing
2+
3+
on:
4+
push:
5+
branches: [main,build-secrets-testing]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
packages: write
12+
13+
jobs:
14+
secrets-testing:
15+
name: Secrets Testing
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
24+
- name: test secrets
25+
uses: docker/build-push-action@v6
26+
with:
27+
context: .
28+
target: secrets-testing.print
29+
push: false
30+
secrets: |
31+
"test_secret=${{ secrets.NICKLAS_TEST_SECRET }}"

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,15 @@ FROM openfeature-provider-js.test AS openfeature-provider-js.test_e2e
416416
RUN --mount=type=secret,id=js_e2e_test_env,target=.env.test \
417417
make test-e2e
418418

419+
# ==============================================================================
420+
# Test Secrets
421+
# ==============================================================================
422+
FROM alpine AS secrets-testing.print
423+
424+
# Never do this at home kids!
425+
RUN --mount=type=secret,id=test_secret,target=/run/secrets/secret.txt \
426+
cp /run/secrets/secret.txt /secret.txt
427+
419428
# ==============================================================================
420429
# Build OpenFeature Provider
421430
# ==============================================================================

0 commit comments

Comments
 (0)