name: Build Integration Test Container on: push: branches: [ main ] paths: - 'tests/infrastructure/Dockerfile' - '.github/workflows/build-test-container.yml' workflow_dispatch: permissions: contents: read packages: write env: IMAGE: ghcr.io/${{ github.repository_owner }}/psproxmoxve-integration:latest jobs: build: runs-on: ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v5 - name: Lowercase image name id: image run: echo "name=${IMAGE,,}" >> "$GITHUB_OUTPUT" - name: Log in to GHCR uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v7 with: context: tests/infrastructure file: tests/infrastructure/Dockerfile push: true tags: ${{ steps.image.outputs.name }}