Files
coder-images/.gitea/workflows/build-php.yml
T
2026-03-18 13:44:41 +00:00

31 lines
861 B
YAML

name: Build PHP Images
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: [82, 84]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Login to Registry
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: .
file: php/Dockerfile.php${{ matrix.php_version }}
push: true
tags: ${{ vars.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/coder-images:php${{ matrix.php_version }}