Skip to content

Commit

Permalink
ci(): moved build artifacts directly in docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye committed Feb 13, 2025
1 parent f8d8e09 commit 320a3a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/workflow-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ name: Publish - Docker

on:
workflow_call:
inputs:
docker-tag:
description: "The Docker image Tag for Kestra"
required: true
type: string
plugins:
description: "The Kestra plugins to be used for the build."
required: false
type: string
secrets:
DOCKERHUB_USERNAME:
description: "The Dockerhub username."
Expand All @@ -20,18 +11,24 @@ on:
required: true

jobs:
build-artifacts:
name: Build - Artifacts
uses: ./.github/workflows/workflow-build-artifacts.yml
with:
plugin-version: ${{ github.event.inputs.plugin-version != null && github.event.inputs.plugin-version || 'LATEST' }}

publish:
name: Publish - Docker
runs-on: ubuntu-latest
strategy:
matrix:
image:
- tag: ${{ inputs.docker-tag }}-no-plugins
- tag: ${{ needs.build-artifacts.outputs.docker-tag }}-no-plugins
packages: ""
python-libraries: ""

- tag: ${{ inputs.docker-tag }}
plugins: ${{ inputs.plugins }}
- tag: ${{ needs.build-artifacts.outputs.docker-tag }}
plugins: ${{ needs.build-artifacts.outputs.plugins }}
packages: python3 python3-venv python-is-python3 python3-pip nodejs npm curl zip unzip
python-libraries: kestra
steps:
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/workflow-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,9 @@ on:
description: "The Sonatype GPG file."
required: true
jobs:
Build-Artifacts:
name: Build - Artifacts
uses: ./.github/workflows/workflow-build-artifacts.yml
with:
plugin-version: ${{ github.event.inputs.plugin-version != null && github.event.inputs.plugin-version || 'LATEST' }}

Docker:
name: Publish Docker
needs: Build-Artifacts
uses: ./.github/workflows/workflow-publish-docker.yml
with:
docker-tag: ${{needs.Build-Artifacts.docker-tag}}
plugins: ${{needs.Build-Artifacts.plugins}}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down

0 comments on commit 320a3a3

Please sign in to comment.