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

To main #816

Merged
merged 52 commits into from
May 21, 2024
Merged

To main #816

merged 52 commits into from
May 21, 2024

Conversation

eskp
Copy link
Contributor

@eskp eskp commented May 15, 2024

Get main branch up to date with the recent changes - deploying to our infra instead of Dspot. Then going forward we'll be able to deploy to prod env from main branch, and to staging from develop.

Copy link

@sanbotto sanbotto left a comment

Choose a reason for hiding this comment

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

Requesting changes since GH workflows are missing some env vars that would cause them to fail.

.github/workflows/angular-dev.yml Outdated Show resolved Hide resolved
.github/workflows/angular-dev.yml Show resolved Hide resolved
.github/workflows/angular-prod.yml Outdated Show resolved Hide resolved
.github/workflows/angular-prod.yml Show resolved Hide resolved
.github/workflows/angular-prod.yml Outdated Show resolved Hide resolved
.github/workflows/node.js-prod.yml Show resolved Hide resolved
.github/workflows/node.js-dev.yml Outdated Show resolved Hide resolved
.github/workflows/node.js-dev.yml Show resolved Hide resolved
.github/workflows/node.js-dev.yml Outdated Show resolved Hide resolved
.github/workflows/angular-dev.yml Outdated Show resolved Hide resolved
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
Copy link
Contributor

Choose a reason for hiding this comment

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

You can try to use iam role to deploy since the organisation secret are already available.

# staging
        role-to-assume: ${{ secrets.GA_OIDC_EKS_STAGING }}
        role-session-name: MIPSSTAGING
        aws-region: ${{ env.AWS_REGION }}

# prod
        role-to-assume: ${{ secrets.GA_OIDC_EKS_PROD }}
        role-session-name: MIPSPROD
        aws-region: ${{ env.AWS_REGION }}

also don't forget to add the following for the pipeline

permissions:
  id-token: write
  contents: read

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will tackle it as part of the existing ticket in the Backlog

- name: Deploying Service to Kubernetes with Helm
id: deploy
if: ${{ !contains(github.event.head_commit.message , '[skip deploy]') }}
uses: bitovi/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

1.2.9 is the latest now.

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same here.

- name: Deploying Service to Kubernetes with Helm
id: deploy
if: ${{ !contains(github.event.head_commit.message , '[skip deploy]') }}
uses: bitovi/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

1.2.9 is the latest

password: ${{ secrets.SSH_PASS }}
source: "./backend"
target: "/var/warehouse/makerdao-mips-develop"
aws-access-key-id: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

password: ${{ secrets.SSH_PASS }}
source: "./backend"
target: "/var/warehouse/makerdao-mips"
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

- name: Deploying Service to Kubernetes with Helm
id: deploy
if: ${{ !contains(github.event.head_commit.message , '[skip deploy]') }}
uses: bitovi/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

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

1.2.9 is the latest.

env:
NODE_ENV:
type: kv
value: production
Copy link
Contributor

Choose a reason for hiding this comment

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

As per your Dockerfile, is it supposed to be prod instead of production?

@eskp eskp merged commit 8da238d into main May 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants