Skip to content

Commit

Permalink
Tweaked GitHub publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nfugal committed Sep 14, 2023
1 parent 558da69 commit ff5285a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Create and publish a Docker image
# documentation.

on:
schedule:
- cron: "0 10 * * *"
push:
branches: [ "master" ]
# Publish semver tags as releases.
Expand Down Expand Up @@ -64,6 +66,14 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit ff5285a

Please sign in to comment.