Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
willdavsmith committed Oct 16, 2023
1 parent f4717a8 commit f81744d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/publish-recipes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ do

echo "Publishing $RECIPE to $PUBLISH_REF"
echo "- $PUBLISH_REF" >> $GITHUB_STEP_SUMMARY
rad bicep publish $RECIPE --target "br:$PUBLISH_REF"
rad bicep publish --file $RECIPE --target "br:$PUBLISH_REF"
done
14 changes: 5 additions & 9 deletions .github/workflows/functional-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ env:
ACTION_LINK: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
# Server where terraform test modules are deployed
TF_RECIPE_MODULE_SERVER_URL: "http://tf-module-server.radius-test-tf-module-server.svc.cluster.local"
# The rad CLI download URL
RAD_CLI_URL: https://get.radapp.dev/tools/rad/install.sh

jobs:
build:
Expand Down Expand Up @@ -250,18 +252,12 @@ jobs:
append: true
message: |
:hourglass: Publishing Bicep Recipes for functional tests...
- name: Download rad-bicep
run: |
mkdir -p dist
./.github/scripts/curl-with-retries.sh https://get.radapp.dev/tools/bicep-extensibility/edge/linux-x64/rad-bicep --output dist/rad-bicep
chmod +x dist/rad-bicep
- name: Publish Bicep Test Recipes
run: |
make publish-test-bicep-recipes
env:
CONTAINER_REGISTRY: ${{ env.CONTAINER_REGISTRY }}
BICEP_RECIPE_REGISTRY: ${{ env.CONTAINER_REGISTRY }}
BICEP_RECIPE_TAG_VERSION: ${{ env.REL_VERSION }}
RAD_BICEP_PATH: dist
- uses: marocchino/sticky-pull-request-comment@v2
if: success() && env.PR_NUMBER != ''
continue-on-error: true
Expand Down Expand Up @@ -377,7 +373,7 @@ jobs:
# AZURE_OIDC_ISSUER
eval "export $(echo "${{ secrets.FUNCTEST_AZURE_OIDC_JSON }}" | jq -r 'to_entries | map("\(.key)=\(.value)") | @sh')"
AUTHKEY=$(echo -n "${{ env.GHCR_ACTOR }}:${{ secrets.GH_RAD_CI_BOT_PAT }}" | base64)
AUTHKEY=$(echo -n "${{ github.actor }}:${{ secrets.GH_RAD_CI_BOT_PAT }}" | base64)
echo "{\"auths\":{\"ghcr.io\":{\"auth\":\"${AUTHKEY}\"}}}" > "./ghcr_secret.json"
# Create KinD cluster with OIDC Issuer keys
Expand Down Expand Up @@ -516,7 +512,7 @@ jobs:
RADIUS_SAMPLES_REPO_ROOT: ${{ github.workspace }}/samples
# Test_MongoDB_Recipe_Parameters is using the following environment variable.
INTEGRATION_TEST_RESOURCE_GROUP_NAME: ${{ env.AZURE_TEST_RESOURCE_GROUP }}
CONTAINER_REGISTRY: ${{ env.CONTAINER_REGISTRY }}
BICEP_RECIPE_REGISTRY: ${{ env.BICEP_RECIPE_REGISTRY }}
BICEP_RECIPE_TAG_VERSION: ${{ env.BICEP_RECIPE_TAG_VERSION }}
- uses: azure/setup-kubectl@v3
if: always()
Expand Down

0 comments on commit f81744d

Please sign in to comment.