Files
PSProxmoxVE/.github/workflows/build-test-container.yml
T
Clint Branham 27e9ff0882 fix(ci): lowercase GHCR image tag and simplify image name
GHCR requires lowercase repository names. Use repository_owner with
bash lowercase expansion for the container build, and hardcode the
lowercase image name in the integration workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 11:34:37 -05:00

43 lines
998 B
YAML

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@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: tests/infrastructure
file: tests/infrastructure/Dockerfile
push: true
tags: ${{ steps.image.outputs.name }}