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

chore: include enrichment plugin code in alerta #158

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ venv
.coverage
*.swp
*.log
.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.git
**/.git

Already fixed in the other PR

10 changes: 0 additions & 10 deletions .github/workflows/pr-onto-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,9 @@ jobs:
- name: Get branch name
id: branch-name
uses: tj-actions/[email protected]
# - run: git fetch --all --tags
# - name: Check Release Version
# uses: thebongy/version-check@v1
# with:
# file: worker/package.json
# tagFormat: v${version}
# failBuild: true
- run: |
docker login --username rudderlabs --password '${{ secrets.DOCKER_HUB_PASSWORD }}'
export VERSION=${{ steps.branch-name.outputs.current_branch }}
rm -rf rudder-alerta-enrichment-plugin
git clone -b "$(cat RUDDER_ENRICH_PLUGIN_BRANCH_NAME)" https://${{ secrets.PAT_USERNAME }}:${{ secrets.PAT }}@github.com/rudderlabs/rudder-alerta-enrichment-plugin.git
docker build --no-cache --build-arg=COMMIT_ID_VALUE="$(git log --format="%H" -n 1)" -t rudderlabs/alerta:$VERSION .
docker push rudderlabs/alerta:$VERSION
Comment on lines 17 to 20
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a best practise we should also use https://github.com/docker/build-push-action

rm -rf rudder-alerta-enrichment-plugin
name: Docker build and push
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,4 @@ pg-data/
.env.development
values.yaml

rudder-alerta-enrichment-plugin/
pg-data-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Sync Ditto Changes
on: workflow_dispatch

jobs:
sync-ditto-changes:
runs-on: ubuntu-latest
steps:
- name: Sync Ditto Changes and create a PR
uses: dittowords/[email protected]
with:
ditto-api-key: ${{ secrets.DITTO_API_KEY }}
3 changes: 3 additions & 0 deletions rudder-alerta-enrichment-plugin/ditto/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
projects:
- name: "\U0001F6A8 Notifications & Alerts"
id: 630f9ed947a50a5d161c8b30
Loading
Loading