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) }}