We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c40d186 commit e06d785Copy full SHA for e06d785
.github/workflows/CD.yml
@@ -1,8 +1,8 @@
1
name: Publish Docker image
2
-on:
3
- push:
4
- tags:
5
- - 'v*'
+on:
+ release:
+ types: [created, published]
+
6
7
jobs:
8
docker:
@@ -11,15 +11,6 @@ jobs:
11
- name: Checkout
12
uses: actions/checkout@v2
13
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
-
23
- name: Docker meta
24
id: meta
25
uses: docker/metadata-action@v3
@@ -35,5 +26,5 @@ jobs:
35
26
with:
36
27
push: true
37
28
context: bot/
38
- tags: ${{ github.ref}}
29
+ tags: ${{ github.event.release.tag_name }}
39
30
labels: ${{ steps.meta.outputs.labels }}
0 commit comments