mirror of
https://github.com/bitnami/containers.git
synced 2026-10-18 01:42:21 +02:00
[bitnami/containers] Add publish osspi feature #21804
Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
@@ -40,8 +40,8 @@ jobs:
|
||||
- id: get-registry-credentials
|
||||
name: Get marketplace's registry credentials
|
||||
run: |
|
||||
# csp_auth_token=$(curl -s -H 'Content-Type: application/x-www-form-urlencoded' -X POST -d "grant_type=refresh_token&api_token=${{ secrets.PROD_MARKETPLACE_API_TOKEN }}" https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize | jq -re .access_token)
|
||||
# repo_info=$(curl -s -X POST -H "Content-Type: application/json" -H "csp-auth-token:$csp_auth_token" -d '{"withCredentials":true, "storageType":"OCI"}' https://gtw.marketplace.cloud.vmware.com/api/v1/repositories/transient)
|
||||
csp_auth_token=$(curl -s -H 'Content-Type: application/x-www-form-urlencoded' -X POST -d "grant_type=refresh_token&api_token=${{ secrets.PROD_MARKETPLACE_API_TOKEN }}" https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize | jq -re .access_token)
|
||||
repo_info=$(curl -s -X POST -H "Content-Type: application/json" -H "csp-auth-token:$csp_auth_token" -d '{"withCredentials":true, "storageType":"OCI"}' https://gtw.marketplace.cloud.vmware.com/api/v1/repositories/transient)
|
||||
marketplace_user=$(echo "$repo_info" | jq -re .response.repodetails.username)
|
||||
marketplace_passwd=$(echo "$repo_info" | jq -re .response.repodetails.token)
|
||||
echo "::add-mask::${marketplace_user}"
|
||||
|
||||
Reference in New Issue
Block a user