Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Commit

Permalink
rooftop solar
Browse files Browse the repository at this point in the history
  • Loading branch information
teodoravasic committed Sep 26, 2024
1 parent 96f58dd commit 0d21521
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ jobs:
- uses: actions/checkout@v4

- name: AWS login with DEV credentials
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.INSTALLER_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.INSTALLER_DEV_AWS_SECRET_KEY }}
aws-access-key-id: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_SECRET_KEY }}
aws-region: us-east-1
- name: Log into CodeArtifact
id: codeartifact-login
Expand Down Expand Up @@ -148,10 +148,10 @@ jobs:
with:
node-version: '20.x'
- name: AWS login with DEV credentials
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.INSTALLER_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.INSTALLER_DEV_AWS_SECRET_KEY }}
aws-access-key-id: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_SECRET_KEY }}
aws-region: us-east-1
- name: Log into CodeArtifact
id: codeartifact-login
Expand Down Expand Up @@ -184,13 +184,12 @@ jobs:
version: 2
arch: amd64

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
- name: AWS login with DEV credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.INSTALLER_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.INSTALLER_DEV_AWS_SECRET_KEY }}
aws-access-key-id: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_SECRET_KEY }}
aws-region: us-east-1

- name: Get frontend bucket & distribution
id: get-frontend-resources
working-directory: ./tofu/environments/stage/services/frontend-infra
Expand All @@ -214,10 +213,10 @@ jobs:
- uses: actions/checkout@v4

- name: AWS login with DEV credentials
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.INSTALLER_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.INSTALLER_DEV_AWS_SECRET_KEY }}
aws-access-key-id: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_SECRET_KEY }}
aws-region: us-east-1
- name: Log into CodeArtifact
id: codeartifact-login
Expand Down Expand Up @@ -283,10 +282,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: AWS login with DEV credentials
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.INSTALLER_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.INSTALLER_DEV_AWS_SECRET_KEY }}
aws-access-key-id: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_SECRET_KEY }}
aws-region: us-east-1
- name: Log into CodeArtifact
id: codeartifact-login
Expand Down Expand Up @@ -319,10 +318,10 @@ jobs:
echo ecr_tag=$output >> $GITHUB_OUTPUT
- name: AWS login with DEV credentials
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.INSTALLER_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.INSTALLER_DEV_AWS_SECRET_KEY }}
aws-access-key-id: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ROOFTOP_SOLAR_DEV_AWS_SECRET_KEY }}
aws-region: us-east-1
- run: |-
aws codeartifact login --tool pip --domain energysage --domain-owner 659694780082 --repository cloud-engineering
Expand Down

0 comments on commit 0d21521

Please sign in to comment.