Skip to content

Commit

Permalink
ci: only upload docker images for certain triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Jan 3, 2021
1 parent 01a15e0 commit 66cdf6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ jobs:
docker images $TAG
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push $TAG
if: "github.ref == 'refs/heads/master' && !(github.event_name == 'push' && contains(github.event.head_commit.message, '[skip release]'))"
if: "github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')"

0 comments on commit 66cdf6b

Please sign in to comment.