Skip to content

Commit

Permalink
only publish a new docker images when the real app files is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Mar 22, 2024
1 parent a164f1b commit bf99ae8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@ name: Docker
# documentation.

on:
schedule:
- cron: '35 4 * * *'
push:
branches: [ "*" ]
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
paths:
- 'app/**/*'
- 'Dockerfile'
- 'requirements.txt'
- '.github/workflows/docker-publish.yml'
pull_request:
branches: [ "main" ]
types: [ closed ]
paths:
- 'app/**/*'
- 'Dockerfile'
- 'requirements.txt'
- '.github/workflows/docker-publish.yml'

env:
# Use docker.io for Docker Hub if empty
Expand Down

0 comments on commit bf99ae8

Please sign in to comment.