Update to istio-1.18.2-tetrate-v1 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release a revision | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- main | |
paths: | |
- "charts/istio/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
- name: Run revision builder | |
id: builder | |
run: | | |
./scripts/pr.sh ${{ github.event.pull_request.head.ref }} ${{ vars.HELM_URL }} | |
- name: Run revision releaser | |
id: releaser | |
run: | | |
./scripts/release.sh ${{ github.event.pull_request.head.ref }} | |
- name: Tag | |
run: | | |
git reset --hard | |
git switch main | |
git pull | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git tag release-istio-${{ steps.builder.outputs.VERSION }} -m "${{ github.event.pull_request.head.ref }}: PR #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}" | |
git push origin release-istio-${{ steps.builder.outputs.VERSION }} | |
- name: Create a Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: istio-${{ steps.builder.outputs.VERSION }} | |
token: ${{ secrets.GH_TOKEN }} | |
tag_name: release-istio-${{ steps.builder.outputs.VERSION }} | |
draft: false | |
prerelease: false | |
files: | | |
${{ steps.builder.outputs.BUILDDIR }}/*.tgz | |
${{ steps.builder.outputs.INDEX }} | |
- name: Commit files | |
run: | | |
git reset --hard | |
git switch gh-pages | |
cp -f ${{ steps.builder.outputs.INDEX }}/index.yaml index.yaml | |
git add index.yaml | |
git commit -a -m "Update to ${{ steps.releaser.outputs.VERSION }}" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
branch: gh-pages | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "${{ steps.builder.outputs.INDEX }}" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |