forked from percona/mongodb_exporter
-
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.
Merge pull request #83 from sysdiglabs/SMPROD-14655
UPDATE github actions for new Jenkins
- Loading branch information
Showing
3 changed files
with
43 additions
and
10 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 |
---|---|---|
|
@@ -18,12 +18,12 @@ jobs: | |
name: ${{ matrix.docker }} | ||
steps: | ||
- name: build | ||
uses: sysdiglabs/exporter-builder@v0.6 | ||
uses: sysdiglabs/exporter-builder@v1.1 | ||
with: | ||
exporter: mongodb-exporter | ||
artifactory_token: ${{ secrets.ARTI_TOKEN }} | ||
artifactory_username: [email protected] | ||
artifactory_token: ${{ secrets.GAR_DEV_RW_JSON_KEY }} | ||
artifactory_username: _json_key | ||
sysdig_secure_token: ${{ secrets.SYSDIG_SECURE_TOKEN }} | ||
tag_name: dev | ||
target: ${{ matrix.docker }} | ||
repository: artifactory.internal.sysdig.com | ||
repository: us-docker.pkg.dev |
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,27 @@ | ||
name: Push Dry run | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
on-success: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger jenkins job to upload master to Quay.io | ||
uses: toptal/jenkins-job-trigger-action@master | ||
with: | ||
jenkins_url: "https://jenkins.internal.sysdig.tools/" | ||
jenkins_user: '[email protected]' | ||
jenkins_token: ${{ secrets.JENKINS_BOT_API_TOKEN }} | ||
job_name: "promcat/job/exporters/job/integrations-mongodb-exporter" | ||
job_params: | | ||
{ | ||
"DRY_RUN": "true", | ||
"SCRATCH": "true", | ||
"EXPORTER": "mongodb-exporter" | ||
} |
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 |
---|---|---|
|
@@ -14,10 +14,16 @@ jobs: | |
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload master to Quay.io | ||
uses: fjogeleit/http-request-action@master | ||
- name: Trigger jenkins job to upload master to Quay.io | ||
uses: toptal/jenkins-job-trigger-action@master | ||
with: | ||
url: 'https://sysdig-jenkins.internal.sysdig.com/view/Integrations/job/integrations-mongodb-exporter/buildWithParameters?token=${{ secrets.JENKINS_PROMCAT_LAUNCH_TOKEN }}&EXPORTER=mongodb-exporter&DRY_RUN=false' | ||
method: 'POST' | ||
username: [email protected] | ||
password: ${{ secrets.JENKINS_PROMCAT_API_TOKEN }} | ||
jenkins_url: "https://jenkins.internal.sysdig.tools/" | ||
jenkins_user: '[email protected]' | ||
jenkins_token: ${{ secrets.JENKINS_BOT_API_TOKEN }} | ||
job_name: "promcat/job/exporters/job/integrations-mongodb-exporter" | ||
job_params: | | ||
{ | ||
"DRY_RUN": "false", | ||
"SCRATCH": "true", | ||
"EXPORTER": "mongodb-exporter" | ||
} |