File tree 2 files changed +10
-22
lines changed
2 files changed +10
-22
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,6 @@ name: Publish - Docker
2
2
3
3
on :
4
4
workflow_call :
5
- inputs :
6
- docker-tag :
7
- description : " The Docker image Tag for Kestra"
8
- required : true
9
- type : string
10
- plugins :
11
- description : " The Kestra plugins to be used for the build."
12
- required : false
13
- type : string
14
5
secrets :
15
6
DOCKERHUB_USERNAME :
16
7
description : " The Dockerhub username."
20
11
required : true
21
12
22
13
jobs :
14
+ build-artifacts :
15
+ name : Build - Artifacts
16
+ uses : ./.github/workflows/workflow-build-artifacts.yml
17
+ with :
18
+ plugin-version : ${{ github.event.inputs.plugin-version != null && github.event.inputs.plugin-version || 'LATEST' }}
19
+
23
20
publish :
24
21
name : Publish - Docker
22
+ needs : build-artifacts
25
23
runs-on : ubuntu-latest
26
24
strategy :
27
25
matrix :
28
26
image :
29
- - tag : ${{ inputs .docker-tag }}-no-plugins
27
+ - tag : ${{ needs.build-artifacts.outputs .docker-tag }}-no-plugins
30
28
packages : " "
31
29
python-libraries : " "
32
30
33
- - tag : ${{ inputs .docker-tag }}
34
- plugins : ${{ inputs .plugins }}
31
+ - tag : ${{ needs.build-artifacts.outputs .docker-tag }}
32
+ plugins : ${{ needs.build-artifacts.outputs .plugins }}
35
33
packages : python3 python3-venv python-is-python3 python3-pip nodejs npm curl zip unzip
36
34
python-libraries : kestra
37
35
steps :
Original file line number Diff line number Diff line change 31
31
description : " The Sonatype GPG file."
32
32
required : true
33
33
jobs :
34
- Build-Artifacts :
35
- name : Build - Artifacts
36
- uses : ./.github/workflows/workflow-build-artifacts.yml
37
- with :
38
- plugin-version : ${{ github.event.inputs.plugin-version != null && github.event.inputs.plugin-version || 'LATEST' }}
39
-
40
34
Docker :
41
35
name : Publish Docker
42
- needs : Build-Artifacts
43
36
uses : ./.github/workflows/workflow-publish-docker.yml
44
- with :
45
- docker-tag : ${{needs.Build-Artifacts.docker-tag}}
46
- plugins : ${{needs.Build-Artifacts.plugins}}
47
37
secrets :
48
38
DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
49
39
DOCKERHUB_PASSWORD : ${{ secrets.DOCKERHUB_PASSWORD }}
You can’t perform that action at this time.
0 commit comments