Skip to content

Commit

Permalink
Fix Micromamba setup
Browse files Browse the repository at this point in the history
  • Loading branch information
omad committed Sep 21, 2023
1 parent cc80ff2 commit b8ef03d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test_rds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.1-0'
environment-name: test-env
create-args: >-
python=3.10
datacube
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -29,9 +36,9 @@ jobs:
- name: Get Database Credentials
run: |
username_password=$(aws ssm get-parameter --name /dea-sandbox-eks/sandbox_reader/db.creds --with-decryption --query Parameter.Value --output text)
IFS=: read -r PGUSERNAME PGPASSWORD <<< $username_password
echo "PGUSERNAME=${PGUSERNAME}" >> $GITHUB_ENV
echo "PGPASSWORD=${PGPASSWORD}" >> $GITHUB_ENV
# IFS=: read -r PGUSERNAME PGPASSWORD <<< $username_password
# echo "PGUSERNAME=${PGUSERNAME}" >> $GITHUB_ENV
# echo "PGPASSWORD=${PGPASSWORD}" >> $GITHUB_ENV
echo DATACUBE_DB_URL=postgresql://${username_password}@localhost:5432/odc >> $GITHUB_ENV
- name: Open Port Forward to RDS
Expand All @@ -46,13 +53,6 @@ jobs:
echo "PGPORT=5432" >> $GITHUB_ENV
echo "PGHOST=localhost" >> $GITHUB_ENV
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.1'
environment-name: test-env
create-args: >-
python=3.10
datacube
- name: Test RDS Connection
run: |
Expand Down

0 comments on commit b8ef03d

Please sign in to comment.