forked from jaegertracing/jaeger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move all workflows to the same folder level * Exclude zip extension from the artifact filename
- Loading branch information
1 parent
1227c5e
commit 4b8a044
Showing
9 changed files
with
136 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
artifact-name: | ||
value: ${{ jobs.build.outputs.artifact-name }} | ||
version: | ||
value: ${{ jobs.build.outputs.version }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
artifact-name: ${{ steps.get-artifact-name.outputs.artifact_name }} | ||
version: ${{ steps.get-artifact-name.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
id: setup-node | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'yarn' | ||
|
||
- run: yarn install --frozen-lockfile | ||
|
||
- run: yarn build | ||
|
||
- name: Get artifact name and version | ||
id: get-artifact-name | ||
run: | | ||
git fetch --tags | ||
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV | ||
NAME="dist-$LATEST_TAG" | ||
echo "ARTIFACT_NAME=$NAME" >> $GITHUB_ENV | ||
echo "artifact_name=$NAME" >> $GITHUB_OUTPUT | ||
echo "version=${LATEST_TAG#v}" >> $GITHUB_OUTPUT | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ARTIFACT_NAME }} | ||
path: packages/jaeger-ui/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lint & test | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
id: setup-node | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'yarn' | ||
|
||
- run: yarn install --frozen-lockfile | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Test | ||
run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Lint & test & build & publish Docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [released] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
lint-test: | ||
name: Lint & test | ||
uses: ./.github/workflows/digma-lint-test.yml | ||
|
||
build: | ||
name: Build | ||
needs: lint-test | ||
uses: ./.github/workflows/digma-build.yml | ||
|
||
attach-release-asset: | ||
name: Attach release asset | ||
needs: build | ||
uses: ./.github/workflows/digma-release-asset.yml | ||
with: | ||
artifact-name: ${{ needs.build.outputs.artifact-name}} | ||
|
||
build-push-docker-image: | ||
name: Build & push Docker image | ||
needs: build | ||
uses: ./.github/workflows/digma-docker-image.yml | ||
secrets: inherit | ||
with: | ||
dist-artifact-name: ${{ needs.build.outputs.artifact-name }} | ||
push: true | ||
|
||
update-digma-ui: | ||
name: Update version in Digma UI | ||
needs: [attach-release-asset, build-push-docker-image] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get Jaeger version | ||
run: echo "JAEGER_VERSION=$(jq -r '.version' jaeger.json)" >> $GITHUB_ENV | ||
|
||
- name: Create PR in digma-ui | ||
run: | | ||
curl -X POST -H "Accept: application/vnd.github.v3+json" \ | ||
-H "Authorization: token ${{ secrets.RELEASE_PAT }}" \ | ||
https://api.github.com/repos/digma-ai/digma-ui/dispatches \ | ||
-d '{ | ||
"event_type": "update-jaeger", | ||
"client_payload": { | ||
"jaegerUIVersion": "'"${{ needs.build.outputs.version }}"'", | ||
"jaegerVersion": "'"${{ env.JAEGER_VERSION }}"'" | ||
} | ||
}' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.