Skip to content

Commit be30034

Browse files
committed
ci(): moved build artifacts directly in docker workflow
1 parent f8d8e09 commit be30034

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

.github/workflows/workflow-publish-docker.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ name: Publish - Docker
22

33
on:
44
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
145
secrets:
156
DOCKERHUB_USERNAME:
167
description: "The Dockerhub username."
@@ -20,18 +11,25 @@ on:
2011
required: true
2112

2213
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+
2320
publish:
2421
name: Publish - Docker
22+
needs: build-artifacts
2523
runs-on: ubuntu-latest
2624
strategy:
2725
matrix:
2826
image:
29-
- tag: ${{ inputs.docker-tag }}-no-plugins
27+
- tag: ${{ needs.build-artifacts.outputs.docker-tag }}-no-plugins
3028
packages: ""
3129
python-libraries: ""
3230

33-
- tag: ${{ inputs.docker-tag }}
34-
plugins: ${{ inputs.plugins }}
31+
- tag: ${{ needs.build-artifacts.outputs.docker-tag }}
32+
plugins: ${{ needs.build-artifacts.outputs.plugins }}
3533
packages: python3 python3-venv python-is-python3 python3-pip nodejs npm curl zip unzip
3634
python-libraries: kestra
3735
steps:

.github/workflows/workflow-release.yml

-10
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,9 @@ on:
3131
description: "The Sonatype GPG file."
3232
required: true
3333
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-
4034
Docker:
4135
name: Publish Docker
42-
needs: Build-Artifacts
4336
uses: ./.github/workflows/workflow-publish-docker.yml
44-
with:
45-
docker-tag: ${{needs.Build-Artifacts.docker-tag}}
46-
plugins: ${{needs.Build-Artifacts.plugins}}
4737
secrets:
4838
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
4939
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

0 commit comments

Comments
 (0)