-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/staging' into production
- Loading branch information
Showing
17 changed files
with
317 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,32 +1,84 @@ | ||
name: Semantic Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: choice | ||
description: 'Environment to release to. Select "staging" for a pre-release or "production" for a full release.' | ||
options: | ||
- staging | ||
- production | ||
required: true | ||
push: | ||
branches: | ||
- staging | ||
- production | ||
|
||
jobs: | ||
# Create a release | ||
create-release: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
published: ${{ steps.release.outputs.published }} | ||
tag: ${{ steps.release.outputs.tag }} | ||
steps: | ||
- name: checkout-repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
persist-credentials: false | ||
token: ${{ secrets.KIVA_ROBOT_GITHUB_PAT }} | ||
- name: checkout-actions | ||
- name: Checkout actions | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: kiva/github-actions | ||
token: ${{ secrets.KIVA_ROBOT_GITHUB_PAT }} | ||
persist-credentials: false | ||
path: .github/ | ||
- name: semantic-release | ||
- name: Run semantic-release | ||
id: release | ||
uses: ./.github/actions/semantic-release | ||
env: | ||
GITHUB_PAT: ${{ secrets.KIVA_ROBOT_GITHUB_PAT }} | ||
with: | ||
config: "node" | ||
|
||
# Build and push the image to ECR if the release was published | ||
build-image: | ||
runs-on: ubuntu-latest | ||
needs: create-release | ||
if: needs.create-release.outputs.published == 'true' | ||
env: | ||
GITHUB_PAT: "${{ secrets.KIVA_ROBOT_GITHUB_PAT }}" | ||
AWS_REGION: "us-west-2" | ||
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" | ||
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" | ||
SLACK_BOT_TOKEN: "${{ secrets.SLACK_TOKEN }}" | ||
SLACK_CHANNEL: "eng-build-failures" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.create-release.outputs.tag }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: kiva/github-actions | ||
token: ${{ env.GITHUB_PAT }} | ||
path: .github/ | ||
- uses: snow-actions/sparse-checkout@v1.2.0 | ||
with: | ||
repository: kiva/marketplace-web-ui-ci | ||
token: ${{ env.GITHUB_PAT }} | ||
path: .docker | ||
ref: main | ||
patterns: | | ||
resources/org/kiva/marketplaceWebUiCi/ui | ||
- name: move files | ||
run: | | ||
mv .docker/resources/org/kiva/marketplaceWebUiCi/ui/Dockerfile . | ||
- name: docker-build | ||
uses: ./.github/actions/docker-build-push | ||
with: | ||
dockerfile_target: "release" | ||
push: true | ||
tag_source: "git" |
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
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 |
---|---|---|
|
@@ -91,3 +91,5 @@ configmap: | |
value: "kiva-ui" | ||
- key: DD_PROFILING_ENABLED | ||
value: true | ||
- key: APOLLO_BATCH | ||
value: "false" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
query portfolioQuery { | ||
my { | ||
id | ||
teams ( | ||
limit: 100 | ||
) { | ||
values { | ||
id | ||
team { | ||
id | ||
name | ||
teamPublicId | ||
} | ||
} | ||
} | ||
} | ||
general { | ||
team_challenge_enable: uiConfigSetting(key: "portfolio_team_challenge_enable") { | ||
key | ||
value | ||
} | ||
challenge_allowed_teams: uiConfigSetting(key: "portfolio_challenge_allowed_teams") { | ||
key | ||
value | ||
} | ||
} | ||
} |
Oops, something went wrong.