Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
neshkoli committed Dec 11, 2024
1 parent bebd065 commit 9870399
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ jobs:
- name: Evidence on release-bundle
run: |
echo '{ "actor": "${{ github.actor }}", "date": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" }' > rbv2_evidence.json
echo '{ "actor": "${{ github.actor }}", "date": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'", "test": "CI test", "result": "success" }' > test_evidence.json
JF_LINK=${{ vars.ARTIFACTORY_URL }}'/ui/artifactory/lifecycle/?bundleName='${{ vars.BUNDLE_NAME }}'&bundleToFlash='${{ vars.BUNDLE_NAME }}'&releaseBundleVersion='${{ github.run_number }}'&repositoryKey=release-bundles-v2&activeVersionTab=Version%20Timeline&activeKanbanTab=promotion'
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 \
--predicate ./test_evidence.json --predicate-type https://jfrog.com/evidence/testing-results/v1 \
--key "${{ secrets.PRIVATE_KEY }}" --key-alias KEY-ALIAS
echo '🔎 Evidence attached: integration-test 🧪 ' >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
run: |
result=$(opa eval --input ./evidence_graph.json --data policy/policy.rego "data.greenpizza.output" | jq '.result[0].expressions[0].value.approved')
echo "RESULT=$result" >> $GITHUB_ENV
echo "RESULT=$result" >> $GITHUB_STEP_SUMMARY
echo "Result of policy check is: \`$result\`" >> $GITHUB_STEP_SUMMARY
- name: Promote to Production
run: |
Expand Down
1 change: 0 additions & 1 deletion scripts/graphql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ VERSION=$5
export REPOSITORY_KEY NAME VERSION

QUERY=$(envsubst < scripts/graphql_query.gql)
echo "Query: $QUERY"

curl -X POST "${BASE_URL}/evidence/api/v1/onemodel/graphql" \
-H "Content-Type: application/json" \
Expand Down

0 comments on commit 9870399

Please sign in to comment.