Skip to content

Commit 92828ab

Browse files
committed
fix typo gpg_key -> pgp_key
1 parent a44539e commit 92828ab

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/actions/api-deploy-ecs/action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ inputs:
6262
description: The flagsmith-rbac git revision to use when building deployment package.
6363
required: false
6464
default: main
65-
sse_gpg_private_key:
66-
description: Private GPG key used for encrypting/decrypting access logs
65+
sse_pgp_private_key:
66+
description: Private PGP key used for encrypting/decrypting access logs
6767
required: true
6868

6969
outputs:
@@ -151,11 +151,11 @@ runs:
151151
ECR_REPOSITORY: ${{ inputs.aws_ecr_repository_arn }}
152152
DOCKER_BUILDKIT: '1'
153153
run: |
154-
echo "Load gpg private key"
155-
cat <<< ${{ input.sse_gpg_private_key }} > sse_gpg_pkey
154+
echo "Load pgp private key"
155+
cat <<< ${{ input.sse_pgp_private_key }} > sse_pgp_pkey
156156
echo "Building docker image with URL: "
157157
echo $ECR_REPOSITORY:$IMAGE_TAG
158-
docker build --secret id=sse_gpg_pkey,src=./sse_gpg_pkey -t $ECR_REPOSITORY:$IMAGE_TAG -f api/Dockerfile --build-arg SAML_INSTALLED=1 --build-arg POETRY_OPTS="--with saml,auth-controller" .
158+
docker build --secret id=sse_pgp_pkey,src=./sse_pgp_pkey -t $ECR_REPOSITORY:$IMAGE_TAG -f api/Dockerfile --build-arg SAML_INSTALLED=1 --build-arg POETRY_OPTS="--with saml,auth-controller" .
159159
docker push $ECR_REPOSITORY:$IMAGE_TAG
160160
echo "image=$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
161161
shell: bash

.github/workflows/api-deploy-production-ecs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
aws_ecs_service_name: flagsmith-task-processor-svc-eu-west-2-bf77140
5151
aws_task_definitions_directory_path: infrastructure/aws/production
5252
api_ecr_image_url: ${{ steps.deploy-api.outputs.api_ecr_image_url }}
53-
sse_gpg_private_key: ${{ secrets.SSE_GPG_PRIVATE_KEY }}
53+
sse_pgp_private_key: ${{ secrets.SSE_PGP_PRIVATE_KEY }}
5454

5555
run-tests:
5656
runs-on: ubuntu-latest

.github/workflows/api-deploy-staging-ecs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
aws_ecs_service_name: flagsmith-task-processor-svc-eu-west-2-792c644
5252
aws_task_definitions_directory_path: infrastructure/aws/staging
5353
api_ecr_image_url: ${{ steps.deploy-api.outputs.api_ecr_image_url }}
54-
sse_gpg_private_key: ${{ secrets.SSE_GPG_PRIVATE_KEY }}
54+
sse_pgp_private_key: ${{ secrets.SSE_PGP_PRIVATE_KEY }}
5555

5656
run-tests:
5757
runs-on: ubuntu-latest

api/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ ARG TARGETARCH
3030
RUN if [ "${TARGETARCH}" != "amd64" ]; then apt-get update && apt-get install -y libpq-dev && rm -rf /var/lib/apt/lists/*; fi;
3131

3232
# Install GnuPG(and import private key) if secret file exists
33-
RUN --mount=type=secret,id=gpg_pkey if [ -f /run/secrets/sse_gpg_pkey ]; then \
34-
apt-get update && apt-get install -y gnupg && gpg --import /run/secrets/sse_gpg_pkey; fi;
33+
RUN --mount=type=secret,id=pgp_pkey if [ -f /run/secrets/sse_pgp_pkey ]; then \
34+
apt-get update && apt-get install -y gnupg && gpg --import /run/secrets/sse_pgp_pkey; fi;
3535

3636

3737
# Copy the python venv from step 2

0 commit comments

Comments
 (0)