Skip to content

Commit

Permalink
Merge pull request #61 from sysdiglabs/SMPROD-14655
Browse files Browse the repository at this point in the history
UPDATE github actions for new Jenkins
  • Loading branch information
jaimeyh authored Aug 21, 2023
2 parents b044dda + 071f93b commit 1123a5e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
name: ${{ matrix.docker }}
steps:
- name: build
uses: sysdiglabs/exporter-builder@v0.5
uses: sysdiglabs/exporter-builder@v1.1
with:
exporter: redis-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
27 changes: 27 additions & 0 deletions .github/workflows/push-dry-run.yaml
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-redis-exporter"
job_params: |
{
"DRY_RUN": "true",
"SCRATCH": "true",
"EXPORTER": "redis-exporter"
}
18 changes: 12 additions & 6 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-redis-exporter/buildWithParameters?token=${{ secrets.JENKINS_PROMCAT_LAUNCH_TOKEN }}&EXPORTER=redis-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-redis-exporter"
job_params: |
{
"DRY_RUN": "false",
"SCRATCH": "true",
"EXPORTER": "redis-exporter"
}

0 comments on commit 1123a5e

Please sign in to comment.