From 9f0a52f92277756fac33d8083bbeae361c56d592 Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Fri, 7 Apr 2023 11:56:13 -0700 Subject: [PATCH] Update Helm index with released antrea-ui charts (#8) Signed-off-by: Antonin Bas --- .github/workflows/build.yml | 1 + .github/workflows/process_release.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 031b441c..4aa87d05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,5 +21,6 @@ jobs: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} run: | + echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker push antrea/antrea-ui-frontend docker push antrea/antrea-ui-backend diff --git a/.github/workflows/process_release.yml b/.github/workflows/process_release.yml index 9f3c9878..7afd2997 100644 --- a/.github/workflows/process_release.yml +++ b/.github/workflows/process_release.yml @@ -26,3 +26,23 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: asset_paths: '["./assets/*"]' + + update-website: + name: Trigger website update for release + needs: upload-release-assets + runs-on: ubuntu-latest + steps: + - id: get-version + env: + TAG: ${{ github.ref }} + run: | + version=${TAG:10} + echo "::set-output name=version::$version" + - name: Update Helm index with Antrea UI archive + uses: benc-uk/workflow-dispatch@v121 + with: + repo: antrea-io/website + ref: refs/heads/main + workflow: Update Helm index + token: ${{ secrets.ANTREA_WEBSITE_WORKFLOW_DISPATCH_PAT }} + inputs: ${{ format('{{ "archive-url":"https://github.com/antrea-io/antrea-ui/releases/download/{0}/antrea-ui-chart.tgz" }}', steps.get-version.outputs.version) }}