From 60130efd09496f4254d977b111982b642c7f0148 Mon Sep 17 00:00:00 2001 From: Mike Benowitz Date: Thu, 13 May 2021 14:57:27 -0400 Subject: [PATCH] SFR-1080 Replace dash in api key variable with underscore --- .github/workflows/build-branch-qa.yaml | 2 +- .github/workflows/build-qa.yml | 2 +- Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-branch-qa.yaml b/.github/workflows/build-branch-qa.yaml index f337d1ce..3c3215aa 100644 --- a/.github/workflows/build-branch-qa.yaml +++ b/.github/workflows/build-branch-qa.yaml @@ -32,7 +32,7 @@ jobs: BRANCH_NAME: ${{ github.head_ref }} AIRTABLE_KEY: ${{ secrets.AIRTABLE_API_KEY}} run: | - docker build --build-arg airtable-api-key=$AIRTABLE_KEY -t $ECR_REGISTRY/$ECR_REPOSITORY:$BRANCH_NAME . + docker build --build-arg airtable_api_key=$AIRTABLE_KEY -t $ECR_REGISTRY/$ECR_REPOSITORY:$BRANCH_NAME . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$BRANCH_NAME echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$BRANCH_NAME" diff --git a/.github/workflows/build-qa.yml b/.github/workflows/build-qa.yml index 580c7af5..0ebdfdad 100644 --- a/.github/workflows/build-qa.yml +++ b/.github/workflows/build-qa.yml @@ -40,7 +40,7 @@ jobs: IMAGE_TAG: ${{ github.sha }} AIRTABLE_KEY: ${{ secrets.AIRTABLE_API_KEY }} run: | - docker build --build-arg airtable-api-key=$AIRTABLE_KEY -t $ECR_REGISTRY/$ECR_REPOSITORY:$BRANCH_NAME . + docker build --build-arg airtable_api_key=$AIRTABLE_KEY -t $ECR_REGISTRY/$ECR_REPOSITORY:$BRANCH_NAME . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest diff --git a/Dockerfile b/Dockerfile index b6746daa..3e488a41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,14 +7,14 @@ RUN apk add git WORKDIR / -ARG airtable-api-key +ARG airtable_api_key # Set environment variables. NODE_ENV is set early because we # want to use it when running `npm install` and `npm run build`. ENV PATH /app/node_modules/.bin:$PATH ENV PORT=3000 \ NODE_ENV=production -ENV NEXT_PUBLIC_AIRTABLE_API_KEY $airtable-api-key +ENV NEXT_PUBLIC_AIRTABLE_API_KEY $airtable_api_key # Install dependencies. COPY package.json ./