Skip to content

Commit

Permalink
[18810] Deploy to staging (#50)
Browse files Browse the repository at this point in the history
* Add staging pipeline file (#36)

* add file

* fix

* feat(cli): update seeder (#35)

* Add deploy stage to logto-admin (#38)

* fix(cli): fix logto pipeline (#40)

* fix(cli): fix seeder to handle empty data (#41)

fix(cli): fix seeder to handle empty values

* feat: logto uat changes (#43)

* feat: logto uat changes

* Update pipeline-variables/uat.yml

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Test migration command in Terraform (#48)

fix: remove seed commands from dockerfile

---------

Co-authored-by: Alfonso Graziano <alfonso.graziano@nearform.com>
Co-authored-by: Norbert Nagy <nagy.norbert1989@gmail.com>
Co-authored-by: William Monteiro <williamwd@users.noreply.github.com>
  • Loading branch information
4 people authored Jun 28, 2024
1 parent 46cb5fa commit 6efc87b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ EXPOSE 3301
# OGCIO
EXPOSE 3302
# OGCIO
CMD [ "sh", "-c", "export ENCODED_PASSWORD=$(jq --slurp --raw-input --raw-output @uri <(printf \"%s\" $POSTGRES_PASSWORD)) && export DB_URL=\"postgres://$POSTGRES_USER:$ENCODED_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DB_NAME\" && export REDIS_URL=\"redis://$REDIS_HOST:$REDIS_PORT\" && npm run cli db seed -- --swe && npm run cli db alteration deploy latest && npm run ogcio:start"]
CMD [ "sh", "-c", "export ENCODED_PASSWORD=$(jq --slurp --raw-input --raw-output @uri <(printf \"%s\" $POSTGRES_PASSWORD)) && export DB_URL=\"postgres://$POSTGRES_USER:$ENCODED_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DB_NAME\" && export REDIS_URL=\"redis://$REDIS_HOST:$REDIS_PORT\" && npm run ogcio:start"]
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const seedOrganizationRbacData = async (params: {
scopesToSeed: params.toSeed.organization_permissions,
fillScopesMethod: fillScopes,
});

const createdRoles = await createRoles({
transaction: params.transaction,
tenantId: params.tenantId,
Expand Down

0 comments on commit 6efc87b

Please sign in to comment.