Skip to content

Commit

Permalink
chore: [FX-4058] update jira deployments GH Action (#3718)
Browse files Browse the repository at this point in the history
* chore: test jira deployments

* chore: set up env variables

* chore: fix token

* chore: fix token

* chore: test jira deployment

* chore: tbs

* chore: remove unneccesary Gh Workflow

* chore: update other GH Workflows

* chore: use proper version

* chore: update

* chore: tbs

* chore: update environments for jira deployment
  • Loading branch information
dmaklygin authored Jul 27, 2023
1 parent 6b951d1 commit 5087781
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ env:
HTTP_PROXY: http://${{ secrets.HTTP_PROXY }}
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
JENKINS_USER: ${{ secrets.TOPTAL_TRIGGERBOT_USERNAME }}
JENKINS_BUILD_TOKEN: ${{ secrets.TOPTAL_TRIGGERBOT_BUILD_TOKEN }}
PROXY: http://${{ secrets.HTTP_PROXY }}

jobs:
build-docker-image:
Expand Down Expand Up @@ -157,11 +160,11 @@ jobs:
job_timeout: '3600'

- name: Create Jira Deployment
uses: toptal/davinci-github-actions/create-jira-deployment@v8.0.0
uses: toptal/davinci-github-actions/create-jira-deployment@v9.0.0
if: ${{ always() }}
with:
token: ${{ env.TOPTAL_DEVBOT_TOKEN }}
environment: temploy
environment: staging
environment-url: ${{ steps.temploy.outputs.temployURL }}
transient-environment: false
auto-inactive: false
8 changes: 6 additions & 2 deletions .github/workflows/davinci-alpha-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ jobs:
target_url: process.env.STATUS_TARGET_URL
})
- uses: toptal/davinci-github-actions/create-jira-deployment@v8.0.0
- uses: toptal/davinci-github-actions/create-jira-deployment@v9.0.0
name: Create Jira deployment
env:
JENKINS_USER: ${{ secrets.TOPTAL_TRIGGERBOT_USERNAME }}
JENKINS_BUILD_TOKEN: ${{ secrets.TOPTAL_TRIGGERBOT_BUILD_TOKEN }}
PROXY: http://${{ secrets.HTTP_PROXY }}
with:
token: ${{ env.GITHUB_TOKEN }}
environment: alpha-package
environment: development
environment-url: https://www.npmjs.com/package/@toptal/picasso?activeTab=versions
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,13 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }}

- uses: toptal/davinci-github-actions/create-jira-deployment@v8.0.0
- uses: toptal/davinci-github-actions/create-jira-deployment@v9.0.0
name: Create Jira deployment
if: ${{ steps.changesets.outputs.published == 'true' }}
env:
JENKINS_USER: ${{ secrets.TOPTAL_TRIGGERBOT_USERNAME }}
JENKINS_BUILD_TOKEN: ${{ secrets.TOPTAL_TRIGGERBOT_BUILD_TOKEN }}
PROXY: http://${{ secrets.HTTP_PROXY }}
with:
token: ${{ env.DEVBOT_TOKEN }}
environment: production
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
},
"homepage": "https://github.com/toptal/picasso#readme",
"devDependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.21.5",
"@babel/preset-react": "^7.22.3",
Expand Down Expand Up @@ -122,9 +124,7 @@
"typescript": "~4.7.0",
"url-loader": "^4.1.1",
"yargs": "^17.5.1",
"yarn-deduplicate": "^3.1.0",
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1"
"yarn-deduplicate": "^3.1.0"
},
"lint-staged": {
"{**/*.{js,jsx,ts,tsx},.changeset/*.md}": [
Expand Down

0 comments on commit 5087781

Please sign in to comment.