Skip to content

Commit

Permalink
Only build docker on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Oct 3, 2024
1 parent 1ea4b0e commit c9ccb7d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/Docker.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# .github/workflows/app.yaml
name: Docker
on:
schedule:
- cron: '30 10 7,14,21,28 * *'
schedule:
- cron: '30 10 7,14,21,28 * *'

workflow_dispatch:
workflow_dispatch:

push:
paths:
- Dockerfile
push:
branches:
- main
paths:
- Dockerfile

jobs:
docker:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
timeout-minutes: 480
steps:
- name: Checkout code
Expand Down

0 comments on commit c9ccb7d

Please sign in to comment.