Added pipefail, linting, docs

This commit is contained in:
Ismo Vuorinen
2023-11-23 13:23:26 +02:00
parent 3d4880f3f9
commit d49c4708cc
4 changed files with 55 additions and 40 deletions

View File

@@ -3,24 +3,23 @@ name: Docker Image CI
on:
workflow_dispatch:
schedule:
- cron: '15 * 1,15 * *' # Runs only on default branch
- cron: "15 * 1,15 * *" # Runs only on default branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
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' }}
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
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' }}