Files
docker-php-with-imagick/.github/workflows/docker-image.yml
2022-11-04 06:11:54 +00:00

27 lines
628 B
YAML

name: Docker Image CI
on:
workflow_dispatch:
schedule:
- cron: '15 * 1,15 * *' # Runs only on default branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: ivuorinen/docker-php-with-imagick
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
default_branch: main
tags: "latest,php74"
cache: ${{ github.event_name != 'schedule' }}