Improve logging when creating containers for debugging slow creation #254
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: Test and Release | |
| on: | |
| push: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| inputs: | |
| prerelease: | |
| description: 'The release should be an experimental release' | |
| default: 'NO' | |
| required: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| docker-version: # See https://endoflife.date/docker-engine / https://download.docker.com/linux/static/stable/x86_64/ | |
| - "25.0" # 2024-01 --> EOL ? | |
| - "29" # 2025-11 --> EOL ? | |
| fail-fast: false | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| cache: gradle | |
| - name: Set up Docker | |
| uses: docker/setup-docker-action@e61617a16c407a86262fb923c35a616ddbe070b3 # v4.6.0 | |
| with: | |
| version: 'type=image,tag=${{ matrix.docker-version }}' | |
| - name: Test with Gradle | |
| run: ./gradlew assemble check | |
| githubRelease: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| cache: gradle | |
| - name: Release with Gradle | |
| run: ./gradlew githubRelease | |
| env: | |
| GITHUB_USER: "gocd-contrib" | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| PRERELEASE: "${{ github.event.inputs.prerelease }}" |