Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
optimise env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMassart committed Oct 15, 2021
1 parent 0a13f29 commit 1d7af81
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,14 @@ runs:
uses: c-py/action-dotenv-to-setenv@a6380f4d905f42adb7c065db63e6d66d75b971ad #v3
with:
env-file: '.env'
- name: Set SITE_URL env vars
shell: sh
run: |
echo "SITE_URL=${{ inputs.SITE_URL }}" >> $GITHUB_ENV
echo "VERSION=${{ inputs.VERSION }}" >> $GITHUB_ENV
echo "DOCTOOLS_IMAGE_VERSION=${DOCTOOLS_IMAGE_VERSION:=latest}" >> $GITHUB_ENV
- name: Build doc site
shell: sh
run: |
SITE_URL=${{ inputs.SITE_URL }}
VERSION=${{ inputs.VERSION }}
docker run --rm \
--env-file ./.env \
-v ${PWD}:/workspace/ \
-w /workspace/ \
ghcr.io/consensys/doctools-builder:latest \
ghcr.io/consensys/doctools-builder:${DOCTOOLS_IMAGE_VERSION:=latest} \
build -s
# uses: docker://ghcr.io/consensys/doctools-builder:${{ env.DOCTOOLS_IMAGE_VERSION }}
# uses: docker://ghcr.io/consensys/doctools-builder:latest
# with:
# args: "build -s"

0 comments on commit 1d7af81

Please sign in to comment.