diff --git a/.github/workflows/build-push-commit.yaml b/.github/workflows/build-push-commit.yaml index 1ff238a..a9b11ee 100644 --- a/.github/workflows/build-push-commit.yaml +++ b/.github/workflows/build-push-commit.yaml @@ -27,10 +27,10 @@ jobs: run: | if [ "${{ env.BRANCH_NAME }}" = "develop" ] then - docker build --build-arg STAKING_API_URL="https://dev-staking-api.stakely.io/docs" --build-arg STAKING_API_DOC_JSON_URL="https://dev-staking-api.stakely.io/docs-json" -t stakely/stakely-docs:${{ env.BRANCH_NAME }} . + docker build --build-arg STAKING_API_URL="https://dev-staking-api.stakely.io/docs" --build-arg STAKING_API_DOC_JSON_URL="https://dev-staking-api.stakely.io/docs-json" --build-arg APP_URL="https://dev-app.stakely.io" -t stakely/stakely-docs:${{ env.BRANCH_NAME }} . elif [ "${{ env.BRANCH_NAME }}" = "main" ] then - docker build --build-arg STAKING_API_URL="https://staking-api.stakely.io/docs" --build-arg STAKING_API_DOC_JSON_URL="https://staking-api.stakely.io/docs-json" -t stakely/stakely-docs:${{ env.BRANCH_NAME }} . + docker build --build-arg STAKING_API_URL="https://staking-api.stakely.io/docs" --build-arg STAKING_API_DOC_JSON_URL="https://staking-api.stakely.io/docs-json" --build-arg APP_URL="https://app.stakely.io" -t stakely/stakely-docs:${{ env.BRANCH_NAME }} . fi echo '${{ secrets.DOCKERHUB_PASSWORD }}' | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin docker push stakely/stakely-docs:${{ env.BRANCH_NAME }} diff --git a/Dockerfile b/Dockerfile index d12bc37..9e70b10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,9 @@ ENV STAKING_API_URL=$STAKING_API_URL ARG STAKING_API_DOC_JSON_URL ENV STAKING_API_DOC_JSON_URL=$STAKING_API_DOC_JSON_URL +ARG APP_URL +ENV APP_URL=$APP_URL + RUN npm ci ## Build the static site. RUN npm run build