fix: make puppetdb_query function available in built images #32
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: 🚦 CI | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read # minimal required permissions to clone repo | |
| jobs: | |
| setup-matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| build_matrix: ${{ steps.set-build-matrix.outputs.build_matrix }} | |
| steps: | |
| - name: Source checkout | |
| uses: actions/checkout@v7 | |
| - name: 'Setup yq' | |
| uses: dcarbone/install-yq-action@v1.3.1 | |
| - id: set-build-matrix | |
| run: echo "build_matrix=$(bash matrix.sh build)" >> $GITHUB_OUTPUT | |
| build_ci_container: | |
| name: Build ${{ matrix.os }} / ${{ matrix.platform }} CI container | |
| runs-on: ${{ matrix.runner }} | |
| needs: setup-matrix | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.setup-matrix.outputs.build_matrix) }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Build ${{ matrix.os }} / ${{ matrix.platform }} CI container | |
| uses: docker/build-push-action@v7 | |
| with: | |
| tags: ci/openvoxserver:${{ matrix.server_version }}-${{ matrix.os }}-${{ matrix.platform }} | |
| context: . | |
| file: Containerfile.${{ matrix.os }} | |
| push: false | |
| platforms: linux/${{ matrix.platform }} | |
| build-args: | | |
| OPENVOX_RELEASE=${{ matrix.release }} | |
| OPENVOXSERVER_VERSION=${{ matrix.server_version }} | |
| OPENVOXDB_VERSION=${{ matrix.db_version }} | |
| RUBYGEM_R10K=${{ matrix.rubygem_r10k }} | |
| RUBYGEM_RUGGED=${{ matrix.rubygem_rugged }} | |
| JDK_VERSION=${{ matrix.jdk_version }} | |
| tests: | |
| needs: | |
| - setup-matrix | |
| - build_ci_container | |
| runs-on: ubuntu-latest | |
| name: Test suite | |
| steps: | |
| - run: echo Test suite completed | |
| dependabot: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| name: 'Dependabot auto-merge' | |
| needs: | |
| - tests | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' | |
| steps: | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@v3.1.0 | |
| with: | |
| github-token: '${{ secrets.GITHUB_TOKEN }}' | |
| - name: Enable auto-merge for Dependabot PRs | |
| run: gh pr merge --auto --merge "$PR_URL" | |
| env: | |
| PR_URL: ${{github.event.pull_request.html_url}} | |
| GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |