mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-27 15:36:57 +00:00
f1583b4c6c
- docker/login-action v3 → v4 - docker/build-push-action v6 → v7 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@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 }}
|