CI: filter ci by paths, docs ci test vs build, update PR template

This commit is contained in:
shamoon
2023-09-30 10:10:22 -07:00
parent 56f46ae85c
commit a1e023e240
3 changed files with 44 additions and 7 deletions

View File

@@ -12,8 +12,14 @@ on:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
pull_request:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
env:
# Use docker.io for Docker Hub if empty
@@ -24,7 +30,8 @@ env:
jobs:
build:
if: github.repository == 'benphelps/homepage'
name: Docker Build & Push
if: github.repository == 'benphelps/homepage'
runs-on: self-hosted
permissions:
contents: read
@@ -40,7 +47,7 @@ jobs:
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.13.1' # optional