ci(helm chart deployment test): add to GitHub Actions (#4932)
This commit is contained in:
committed by
GitHub
parent
498c1b0e53
commit
3ca500fc28
@@ -8,31 +8,11 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
get-version:
|
||||
outputs:
|
||||
IMAGE_VERSION_TAG: ${{ steps.export-step.outputs.IMAGE_VERSION_TAG }}
|
||||
name: Get version
|
||||
runs-on: blacksmith
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/workflows/scripts/get_version.sh
|
||||
.github/workflows/scripts/common.sh
|
||||
fetch-depth: 1
|
||||
fetch-tags: 1
|
||||
- run: git fetch origin 'refs/tags/*:refs/tags/*'
|
||||
- run: chmod +x ./get_version.sh ./common.sh
|
||||
working-directory: ./.github/workflows/scripts
|
||||
- run: ./get_version.sh >> result
|
||||
working-directory: ./.github/workflows/scripts
|
||||
- run: echo "IMAGE_VERSION_TAG=$(cat result)"
|
||||
working-directory: ./.github/workflows/scripts
|
||||
- id: export-step
|
||||
run: echo "IMAGE_VERSION_TAG=$(cat result)" >> "$GITHUB_OUTPUT"
|
||||
working-directory: ./.github/workflows/scripts
|
||||
uses: ./.github/workflows/get-version.yml
|
||||
|
||||
tests:
|
||||
needs: get-version
|
||||
needs: [get-version]
|
||||
uses: ./.github/workflows/tests.yml
|
||||
with:
|
||||
IMAGE_VERSION_TAG: ${{ needs.get-version.outputs.IMAGE_VERSION_TAG }}
|
||||
@@ -40,10 +20,11 @@ jobs:
|
||||
secrets: inherit
|
||||
|
||||
builds:
|
||||
needs: get-version
|
||||
needs: [get-version]
|
||||
uses: ./.github/workflows/builds.yml
|
||||
with:
|
||||
IMAGE_VERSION_TAG: ${{ needs.get-version.outputs.IMAGE_VERSION_TAG }}
|
||||
DOCKERHUB_USERNAME: 'speckledevops'
|
||||
PUSH_IMAGES: false
|
||||
IMAGE_PREFIX: 'ghcr.io/specklesystems'
|
||||
PUBLISH: false # do not publish the sourcemaps or include the version in frontend-2 builds for pull requests
|
||||
secrets: inherit
|
||||
|
||||
Reference in New Issue
Block a user