File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 3434 tag : ${{ fromJson(needs.get-releases.outputs.matrix) }}
3535 db : ['mariadb', 'mysql']
3636 steps :
37+ - name : Retrieve Pod
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ run : |
41+ # TODO the download url seems to follow the pattern $GITHUB_REPOSITORY/releases/download/{TAG}/{ASSET_NAME}
42+ # alternatively we can query the asset-id, and browser_download_url, but it seems like an overhead
43+ # asset_id=$(gh api repos/$GITHUB_REPOSITORY/releases/tags/latest | jq -r '.assets[]' | jq --arg DB $DB -c 'select(.name=="release-pod-\( $DB ).zip") | .id)
44+ # download_url=$(gh api repos/$GITHUB_REPOSITORY/releases/assets/$asset_id | jq -r ".browser_download_url")
45+ download_url="https://github.com/$GITHUB_REPOSITORY/releases/download/${{ matrix.tag }}/release-pod-${{ matrix.db }}.zip"
46+ curl -L $download_url --output release-pod.zip
47+ ls -la
3748 - name : Setup Python
3849 uses : actions/setup-python@v4
3950 with :
6071 echo "Waiting for LocalStack startup..."
6172 localstack wait -t 15
6273 echo "Startup complete"
63- - name : Retrieve Pod
64- env :
65- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66- run : |
67- # TODO the download url seems to follow the pattern $GITHUB_REPOSITORY/releases/download/{TAG}/{ASSET_NAME}
68- # alternatively we can query the asset-id, and browser_download_url, but it seems like an overhead
69- # asset_id=$(gh api repos/$GITHUB_REPOSITORY/releases/tags/latest | jq -r '.assets[]' | jq --arg DB $DB -c 'select(.name=="release-pod-\( $DB ).zip") | .id)
70- # download_url=$(gh api repos/$GITHUB_REPOSITORY/releases/assets/$asset_id | jq -r ".browser_download_url")
71- download_url="https://github.com/$GITHUB_REPOSITORY/releases/download/${{ matrix.tag }}/release-pod-${{ matrix.db }}.zip"
72- curl -L download_url --output release-pod.zip
73- ls -la
7474 - name : Inject Pod
7575 run : localstack pod load file://release-pod.zip
7676 - name : Run Smoke Tests
You can’t perform that action at this time.
0 commit comments