Skip to content

Commit

Permalink
chore: add ipfs properties to instrastructure config
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Nov 15, 2024
1 parent e8adcb9 commit a12a948
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-deploy-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{ inputs.isProposalDiscussionForumEnabled == 'enabled' }}
PDF_API_URL: ${{ secrets.PDF_API_URL}}
IPFS_GATEWAY: ${{ secrets.IPFS_GATEWAY }}
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-and-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{ inputs.isProposalDiscussionForumEnabled == 'enabled' }}
PDF_API_URL: ${{ secrets.PDF_API_URL }}
IPFS_GATEWAY: ${{ secrets.IPFS_GATEWAY }}
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-and-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{github.event_name == 'push' && 'true' || inputs.isProposalDiscussionForumEnabled == 'enabled'}}
PDF_API_URL: ${{ secrets.PDF_API_URL}}
IPFS_GATEWAY: ${{ secrets.IPFS_GATEWAY }}
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-and-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{github.event_name == 'push' && 'true' || inputs.isProposalDiscussionForumEnabled == 'enabled'}}
PDF_API_URL: ${{ secrets.PDF_API_URL}}
IPFS_GATEWAY: ${{ secrets.IPFS_GATEWAY }}
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions scripts/govtool/config/templates/docker-compose.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ services:
image: <REPO_URL>/metadata-validation:${METADATA_VALIDATION_TAG}
environment:
- PORT=3000
- IPFS_GATEWAY=${IPFS_GATEWAY}
- IPFS_PROJECT_ID=${IPFS_PROJECT_ID}
logging: *logging
restart: always
healthcheck:
Expand Down
2 changes: 2 additions & 0 deletions scripts/govtool/metadata-validation.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ metadata_validation_image_tag := $(shell git log -n 1 --format="%H" -- $(root_di
build-metadata-validation: docker-login
$(call check_image_on_ecr,metadata-validation,$(metadata_validation_image_tag)) || \
$(docker) build --tag "$(repo_url)/metadata-validation:$(metadata_validation_image_tag)" \
--build-arg IPFS_GATEWAY="$${IPFS_GATEWAY}" \
--build-arg IPFS_PROJECT_ID="$${IPFS_PROJECT_ID}" \
$(root_dir)/govtool/metadata-validation

.PHONY: push-metadata-validation
Expand Down

0 comments on commit a12a948

Please sign in to comment.