Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pipeline version #144

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
---
name: Run DAS-CLI tests
name: Build DAS-CLI and run tests

on:
workflow_dispatch:
inputs:
version:
required: false
description: DAS-CLI version
type: string

workflow_call:
inputs:
version:
required: false
description: DAS-CLI version
type: string

pull_request:
types:
Expand All @@ -24,7 +34,7 @@ jobs:
run: docker build -f .docker/Dockerfile.das-toolbox -t das-cli:latest .

- name: Build das-cli binary
run: docker run --rm -v "$(pwd)/dist/":/app/das/dist -e DAS_CLI_VERSION=0.1.0 das-cli:latest
run: docker run --rm -v "$(pwd)/dist/":/app/das/dist -e DAS_CLI_VERSION=${{github.event.inputs.version || '0.1.0'}} das-cli:latest

- name: Upload das-cli artifact
uses: actions/upload-artifact@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: DAS CLI Build
name: DAS CLI Deployment

on:
workflow_dispatch:
Expand Down Expand Up @@ -31,7 +31,9 @@ jobs:

build-and-run-tests:
if: github.ref == 'refs/heads/master'
uses: ./.github/workflows/run-tests.yml
uses: ./.github/workflows/build-and-run-tests.yml
with:
version: ${{github.event.inputs.version}}

tag:
needs: build-and-run-tests
Expand Down