pipline test secret injection v1

This commit is contained in:
Josh 2025-07-31 12:58:42 +00:00
parent 0d2dd0b8d3
commit 4618b76da3

View File

@ -5,14 +5,13 @@ name: secret-test
steps: steps:
- name: echo-secret - name: echo-secret
image: alpine:latest image: alpine:latest
settings: environment:
STAGING_SSH_KEY: STAGING_SSH_KEY: test123
from_secret: STAGING_SSH_KEY
commands: commands:
- | - |
echo "START SECRET" echo "START SECRET"
echo "$STAGING_SSH_KEY" | wc -c echo "$STAGING_SSH_KEY" | wc -c
echo "$STAGING_SSH_KEY" | head -c 64 echo "$STAGING_SSH_KEY"
echo "END SECRET" echo "END SECRET"
when: when:
event: [push, manual] event: [push, manual]