test(e2e): run the e2e host agent under systemd, not bare docker exec #362
This file contains hidden or 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: Build Helm Chart | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: [ 'ci-*' ] | |
| paths-ignore: | |
| - '*.md' | |
| - 'docs/**' | |
| - 'LICENSE' | |
| - 'NOTICE' | |
| - 'PROJECT' | |
| - 'SECURITY_CONTACTS' | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths-ignore: | |
| - '*.md' | |
| - 'docs/**' | |
| - 'LICENSE' | |
| - 'NOTICE' | |
| - 'PROJECT' | |
| - 'SECURITY_CONTACTS' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-helm-chart: | |
| if: ${{ !github.event.pull_request.draft }} | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Generate helm chart | |
| run: make helm TAG=$(make tag) | |
| - name: Package helm chart | |
| run: make helm-package TAG=$(make tag) | |
| - name: Upload helm chart artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: byoh-helm-chart | |
| path: byoh-chart-*.tgz | |
| retention-days: 1 | |
| - name: Log in to helm registry | |
| if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/ci-') }} | |
| env: | |
| QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} | |
| QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} | |
| run: make helm-login | |
| - name: Push helm chart | |
| if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/ci-') }} | |
| run: make helm-push TAG=$(make tag) |