add flags to enable/disable GPU doks cluster options (#1794) #116
Workflow file for this run
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: tagged-release | |
| on: | |
| push: | |
| tags: | |
| - 'v[1-9].[0-9]+.[0-9]+' | |
| jobs: | |
| integration-tests: | |
| name: 'Integration Tests' | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: 1.24.x | |
| - name: Run integration tests | |
| run: make test_integration | |
| github-release: | |
| name: 'GitHub Release' | |
| needs: integration-tests | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # https://github.com/marketplace/actions/goreleaser-action#usage | |
| # note the fetch-depth: 0 input in Checkout step. It is required for | |
| # the changelog to work correctly | |
| fetch-depth: 0 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USER }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Install Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: 1.24.x | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| distribution: goreleaser | |
| version: "~> v2" | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| snapcraft-stable: | |
| name: 'Snapcraft: Stable Release' | |
| needs: integration-tests | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # fetch-depth: 0 fetches all history for all branches and tags | |
| fetch-depth: 0 | |
| - name: Build snap | |
| uses: snapcore/action-build@v1 | |
| id: build | |
| - uses: snapcore/action-publish@master | |
| env: | |
| SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_TOKEN }} | |
| with: | |
| snap: ${{ steps.build.outputs.snap }} | |
| release: stable |