From ab2486766e97d03c324fa687294d59cad08e5e62 Mon Sep 17 00:00:00 2001 From: jay-dee7 Date: Fri, 31 Mar 2023 10:26:42 +0530 Subject: [PATCH] chore(ci): Add Storj Environment variables --- .github/workflows/oci-dist-spec-storj-s3-push.yml | 2 +- .../workflows/oci-dist-spec-storj-uplink-content-discovery.yml | 1 + .../workflows/oci-dist-spec-storj-uplink-content-management.yml | 1 + .github/workflows/oci-dist-spec-storj-uplink-pull.yml | 1 + .github/workflows/oci-dist-spec-storj-uplink-push.yml | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/oci-dist-spec-storj-s3-push.yml b/.github/workflows/oci-dist-spec-storj-s3-push.yml index ee6504ca..4bf3e856 100644 --- a/.github/workflows/oci-dist-spec-storj-s3-push.yml +++ b/.github/workflows/oci-dist-spec-storj-s3-push.yml @@ -92,7 +92,7 @@ jobs: OCI_DEBUG: 0 - name: Setup tmate session if mode is debug and OpenRegistry or OCI Tests Fail uses: mxschmitt/action-tmate@v3 - if: ${{ always() }} + if: ${{ always() && (github.event_name == 'workflow_dispatch') && inputs.debug_enabled }} - name: Set output report name id: vars run: echo "short_commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/oci-dist-spec-storj-uplink-content-discovery.yml b/.github/workflows/oci-dist-spec-storj-uplink-content-discovery.yml index 183823c0..3ddcfe9c 100644 --- a/.github/workflows/oci-dist-spec-storj-uplink-content-discovery.yml +++ b/.github/workflows/oci-dist-spec-storj-uplink-content-discovery.yml @@ -60,6 +60,7 @@ jobs: STORJ_CI_ACCESS_GRANT_TOKEN=${{ secrets.STORJ_CI_ACCESS_GRANT_TOKEN }} yq e -i '.dfs.storj.access_grant_token = env(STORJ_CI_ACCESS_GRANT_TOKEN)' config.yaml STORJ_CI_ENDPOINT=${{ secrets.STORJ_CI_ENDPOINT }} yq e -i '.dfs.storj.endpoint = env(STORJ_CI_ENDPOINT)' config.yaml STORJ_CI_RESOLVER_ENDPOINT=${{ secrets.STORJ_CI_RESOLVER_ENDPOINT }} yq e -i '.dfs.storj.dfs_link_resolver = env(STORJ_CI_RESOLVER_ENDPOINT)' config.yaml + STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT=${{ secrets.STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT }} yq e -i '.dfs.storj.link_share_service = env(STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT)' config.yaml echo "IP=$IP" >> $GITHUB_ENV echo "OCI_ROOT_URL=http://$IP:5000" >> $GITHUB_ENV DISTRIBUTION_REF="local-distribution:v$(date +%Y%m%d%H%M%S)" diff --git a/.github/workflows/oci-dist-spec-storj-uplink-content-management.yml b/.github/workflows/oci-dist-spec-storj-uplink-content-management.yml index 77007a8d..dc1b888f 100644 --- a/.github/workflows/oci-dist-spec-storj-uplink-content-management.yml +++ b/.github/workflows/oci-dist-spec-storj-uplink-content-management.yml @@ -60,6 +60,7 @@ jobs: STORJ_CI_ACCESS_GRANT_TOKEN=${{ secrets.STORJ_CI_ACCESS_GRANT_TOKEN }} yq e -i '.dfs.storj.access_grant_token = env(STORJ_CI_ACCESS_GRANT_TOKEN)' config.yaml STORJ_CI_ENDPOINT=${{ secrets.STORJ_CI_ENDPOINT }} yq e -i '.dfs.storj.endpoint = env(STORJ_CI_ENDPOINT)' config.yaml STORJ_CI_RESOLVER_ENDPOINT=${{ secrets.STORJ_CI_RESOLVER_ENDPOINT }} yq e -i '.dfs.storj.dfs_link_resolver = env(STORJ_CI_RESOLVER_ENDPOINT)' config.yaml + STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT=${{ secrets.STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT }} yq e -i '.dfs.storj.link_share_service = env(STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT)' config.yaml echo "IP=$IP" >> $GITHUB_ENV echo "OCI_ROOT_URL=http://$IP:5000" >> $GITHUB_ENV DISTRIBUTION_REF="local-distribution:v$(date +%Y%m%d%H%M%S)" diff --git a/.github/workflows/oci-dist-spec-storj-uplink-pull.yml b/.github/workflows/oci-dist-spec-storj-uplink-pull.yml index 3eb003f4..31ebd436 100644 --- a/.github/workflows/oci-dist-spec-storj-uplink-pull.yml +++ b/.github/workflows/oci-dist-spec-storj-uplink-pull.yml @@ -60,6 +60,7 @@ jobs: STORJ_CI_ACCESS_GRANT_TOKEN=${{ secrets.STORJ_CI_ACCESS_GRANT_TOKEN }} yq e -i '.dfs.storj.access_grant_token = env(STORJ_CI_ACCESS_GRANT_TOKEN)' config.yaml STORJ_CI_ENDPOINT=${{ secrets.STORJ_CI_ENDPOINT }} yq e -i '.dfs.storj.endpoint = env(STORJ_CI_ENDPOINT)' config.yaml STORJ_CI_RESOLVER_ENDPOINT=${{ secrets.STORJ_CI_RESOLVER_ENDPOINT }} yq e -i '.dfs.storj.dfs_link_resolver = env(STORJ_CI_RESOLVER_ENDPOINT)' config.yaml + STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT=${{ secrets.STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT }} yq e -i '.dfs.storj.link_share_service = env(STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT)' config.yaml echo "IP=$IP" >> $GITHUB_ENV echo "OCI_ROOT_URL=http://$IP:5000" >> $GITHUB_ENV DISTRIBUTION_REF="local-distribution:v$(date +%Y%m%d%H%M%S)" diff --git a/.github/workflows/oci-dist-spec-storj-uplink-push.yml b/.github/workflows/oci-dist-spec-storj-uplink-push.yml index 8f1463d0..d2d7c23f 100644 --- a/.github/workflows/oci-dist-spec-storj-uplink-push.yml +++ b/.github/workflows/oci-dist-spec-storj-uplink-push.yml @@ -61,6 +61,7 @@ jobs: STORJ_CI_ACCESS_GRANT_TOKEN=${{ secrets.STORJ_CI_ACCESS_GRANT_TOKEN }} yq e -i '.dfs.storj.access_grant_token = env(STORJ_CI_ACCESS_GRANT_TOKEN)' config.yaml STORJ_CI_ENDPOINT=${{ secrets.STORJ_CI_ENDPOINT }} yq e -i '.dfs.storj.endpoint = env(STORJ_CI_ENDPOINT)' config.yaml STORJ_CI_RESOLVER_ENDPOINT=${{ secrets.STORJ_CI_RESOLVER_ENDPOINT }} yq e -i '.dfs.storj.dfs_link_resolver = env(STORJ_CI_RESOLVER_ENDPOINT)' config.yaml + STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT=${{ secrets.STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT }} yq e -i '.dfs.storj.link_share_service = env(STORJ_CI_LINK_SHARE_SERVICE_ENDPOINT)' config.yaml echo "IP=$IP" >> $GITHUB_ENV echo "OCI_ROOT_URL=http://$IP:5000" >> $GITHUB_ENV DISTRIBUTION_REF="local-distribution:v$(date +%Y%m%d%H%M%S)"