Skip to content

Commit e06d785

Browse files
other logic 10
1 parent c40d186 commit e06d785

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/CD.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish Docker image
2-
on:
3-
push:
4-
tags:
5-
- 'v*'
2+
on:
3+
release:
4+
types: [created, published]
5+
66

77
jobs:
88
docker:
@@ -11,15 +11,6 @@ jobs:
1111
- name: Checkout
1212
uses: actions/checkout@v2
1313

14-
- name: Wait for tests to succeed
15-
uses: lewagon/[email protected]
16-
with:
17-
ref: ${{ github.ref }}
18-
running-workflow-name: 'Linter, Build, Release'
19-
check-name: 'Create Release'
20-
repo-token: ${{ secrets.GITHUB_TOKEN }}
21-
wait-interval: 20
22-
2314
- name: Docker meta
2415
id: meta
2516
uses: docker/metadata-action@v3
@@ -35,5 +26,5 @@ jobs:
3526
with:
3627
push: true
3728
context: bot/
38-
tags: ${{ github.ref}}
29+
tags: ${{ github.event.release.tag_name }}
3930
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)