mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-19 17:36:17 +00:00
27e9ff0882
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>
43 lines
998 B
YAML
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 }}
|