2024-08-15 14:08:55 +00:00
|
|
|
name: PHP deployer
|
2024-07-11 19:56:01 +00:00
|
|
|
on:
|
2024-07-15 16:22:00 +00:00
|
|
|
schedule:
|
|
|
|
- cron: "@weekly"
|
2024-07-11 19:56:01 +00:00
|
|
|
push:
|
2024-08-15 14:08:55 +00:00
|
|
|
branches: [main]
|
2024-07-11 19:56:01 +00:00
|
|
|
paths:
|
2024-08-16 12:33:15 +00:00
|
|
|
- .gitea/workflows/php-deployer.yaml
|
|
|
|
- images/actions/php-deployer/**
|
2024-08-15 14:08:55 +00:00
|
|
|
pull_request:
|
2024-07-11 17:54:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build and push image
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: catthehacker/ubuntu:act-latest
|
|
|
|
|
|
|
|
steps:
|
2024-08-16 19:20:19 +00:00
|
|
|
- name: Build Docker image
|
|
|
|
uses: https://git.kjan.de/actions/docker-build@v1
|
2024-07-11 17:54:05 +00:00
|
|
|
with:
|
2024-08-16 19:20:19 +00:00
|
|
|
name: php-deployer
|
|
|
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
|
|
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|