Skip to content

Commit

Permalink
ci: create release only when docker image is built
Browse files Browse the repository at this point in the history
  • Loading branch information
geokrety-bot committed Aug 8, 2023
1 parent b69522e commit d327a2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
schedule:
- cron: "0 10 * * *"
push:
branches:
- "**"
branches-ignore:
- main
tags:
- "v*.*.*"
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: lint
on:
pull_request:
push:
branches:
- '!main'
branches-ignore:
- main

jobs:
lint:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

jobs:
build-release:
uses: geokrety/geokrety-gha-workflows/.github/workflows/release.yml@main
uses: geokrety/geokrety-gha-workflows/.github/workflows/release-with-docker.yml@main
with:
image_name: geokrety/bootstrap-email
dockerhub_username: ${{ vars.DOCKERHUB_USERNAME }}
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}

0 comments on commit d327a2d

Please sign in to comment.