Skip to content

Commit

Permalink
KEY-ALIAS
Browse files Browse the repository at this point in the history
  • Loading branch information
neshkoli committed Dec 10, 2024
1 parent 54a5af5 commit 5a913f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ jobs:
run: |
echo '{ "actor": "${{ github.actor }}", "date": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" }' > sign.json
jf evd create --package-name example-project-app --package-version 65 --package-repo-name example-project-docker-dev-local \
--key "${{ secrets.PRIVATE_KEY }}" --key-alias "KEY-ALIAS" \
--key "${{ secrets.PRIVATE_KEY }}" --key-alias KEY-ALIAS \
--predicate ./sign.json --predicate-type https://jfrog.com/evidence/signature/v1
echo 'πŸ”Ž Evidence attached: `signature` πŸ” '
- name: Upload readme file
run: |
jf rt upload ./README.md example-project-generic-dev/readme/${{ github.run_number }}/ --build-name ${{ vars.BUILD_NAME }} --build-number ${{ github.run_number }}
jf evd create --subject-repo-path example-project-generic-dev/readme/${{ github.run_number }}/README.md \
--key "${{ secrets.PRIVATE_KEY }}" --key-alias "KEY-ALIAS" \
--key "${{ secrets.PRIVATE_KEY }}" --key-alias KEY-ALIAS \
--predicate ./sign.json --predicate-type https://jfrog.com/evidence/signature/v1
- name: Collecting Information from Git
Expand All @@ -73,7 +73,7 @@ jobs:
echo '{ "actor": "${{ github.actor }}", "date": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" }' > sign.json
jf evd create --build-name ${{ vars.BUILD_NAME }} --build-number ${{ github.run_number }} \
--predicate ./sign.json --predicate-type https://jfrog.com/evidence/build-signature/v1 \
--key "${{ secrets.PRIVATE_KEY }}" --key-alias "KEY-ALIAS"
--key "${{ secrets.PRIVATE_KEY }}" --key-alias KEY-ALIAS
echo 'πŸ”Ž Evidence attached: `build-signature` πŸ” ' >> $GITHUB_STEP_SUMMARY
- name: Create release bundle
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
echo 'Test on Release bundle ['${{ vars.BUNDLE_NAME }}':'${{ github.run_number }}']('${JF_LINK}') success' >> $GITHUB_STEP_SUMMARY
jf evd create --release-bundle ${{ vars.BUNDLE_NAME }} --release-bundle-version ${{ github.run_number }} \
--predicate ./rbv2_evidence.json --predicate-type https://jfrog.com/evidence/testing-results/v1 \
--key "${{ secrets.PRIVATE_KEY }}" --key-alias "KEY-ALIAS"
--key "${{ secrets.PRIVATE_KEY }}" --key-alias KEY-ALIAS
echo 'πŸ”Ž Evidence attached: integration-test πŸ§ͺ ' >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
if [ "${{ env.RESULT }}" == "true" ]; then
opa eval --input ./evidence_graph.json --data policy/policy.rego "data.greenpizza.output" | jq '.result[0].expressions[0].value' > policy.json
cat policy.json
jf evd create --key "${{ secrets.PRIVATE_KEY }}" --key-alias CI-RSA-KEY \
jf evd create --key "${{ secrets.PRIVATE_KEY }}" --key-alias KEY-ALIAS \
--release-bundle ${{ vars.BUNDLE_NAME }} --release-bundle-version ${{ github.run_number }} \
--predicate ./policy.json --predicate-type https://jfrog.com/evidence/approval/v1
jf release-bundle-promote ${{ vars.BUNDLE_NAME }} ${{ github.run_number }} PROD --signing-key PGP-RSA-2048 --sync=true
Expand Down

0 comments on commit 5a913f4

Please sign in to comment.