Skip to content

Commit 82b97e8

Browse files
committed
ci: create release only when docker image is built
1 parent 1ba70a2 commit 82b97e8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
schedule:
55
- cron: "0 10 * * *"
66
push:
7-
branches:
8-
- "**"
7+
branches-ignore:
8+
- main
99
tags:
1010
- "v*.*.*"
1111
pull_request:

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: lint
33
on:
44
pull_request:
55
push:
6-
branches:
7-
- '!main'
6+
branches-ignore:
7+
- main
88

99
jobs:
1010
lint:

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
jobs:
99
build-release:
10-
uses: geokrety/geokrety-gha-workflows/.github/workflows/release.yml@main
10+
uses: geokrety/geokrety-gha-workflows/.github/workflows/release-with-docker.yml@main
11+
with:
12+
image_name: geokrety/cron
13+
dockerhub_username: ${{ vars.DOCKERHUB_USERNAME }}
1114
secrets:
1215
GH_TOKEN: ${{ secrets.GH_TOKEN }}
16+
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)