Update changelog for 1.2.0 #217
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: Build / Test / Push | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| docker-build: | |
| uses: BerkeleyLibrary/.github/.github/workflows/docker-build.yml@v2.0.0 | |
| with: | |
| image: ghcr.io/${{ github.repository }} | |
| secrets: inherit | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - docker-build | |
| env: | |
| COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml | |
| DOCKER_APP_IMAGE: ${{ needs.docker-build.outputs.image }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@v2 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set ARTIFACTS_DIR | |
| run: echo "ARTIFACTS_DIR=${RUNNER_TEMP}/artifacts" >> $GITHUB_ENV | |
| - name: Create the artifacts directory | |
| run: mkdir -p "$ARTIFACTS_DIR" | |
| - name: Run the test script | |
| env: | |
| LIT_TIND_API_KEY: ${{ secrets.LIT_TIND_API_KEY }} | |
| run: | | |
| docker compose run --rm --user root app chown -R avplayer:avplayer artifacts | |
| docker compose up --detach --wait | |
| docker compose exec app bin/test | |
| - name: Copy out artifacts | |
| if: ${{ always() }} | |
| run: | | |
| docker compose cp app:/opt/app/artifacts "${ARTIFACTS_DIR}/" | |
| docker compose logs | tee "${ARTIFACTS_DIR}/docker-services.log" | |
| docker compose config | tee "${ARTIFACTS_DIR}/docker-compose.merged.yml" | |
| docker events --json --since $TEST_START --until `date +%s` | tee "${ARTIFACTS_DIR}/docker-events.json" | |
| - name: Upload test report | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: avplayer Test Report (${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}) | |
| path: ${{ env.ARTIFACTS_DIR }} | |
| if-no-files-found: error | |
| push: | |
| needs: | |
| - docker-build | |
| - test | |
| uses: BerkeleyLibrary/.github/.github/workflows/docker-push.yml@v2.0.0 | |
| with: | |
| image: ghcr.io/${{ github.repository }} | |
| build-image-arm64: ${{ needs.docker-build.outputs.image-arm64 }} | |
| build-image-x64: ${{ needs.docker-build.outputs.image-x64 }} | |
| secrets: inherit |