Update GitHub Actions workflow and Dockerfile for SSL certificate handling

- Added steps to create a directory for SSL certificates and copy the downloaded certificate to the new location in the GitHub Actions workflow.
- Updated the Dockerfile to reference the new certificate path, ensuring proper installation of the SSL certificate in the container.

These changes improve the organization of SSL certificates and enhance the deployment process.
This commit is contained in:
dal 2025-01-03 16:12:31 -07:00
parent fe6cf9d945
commit 31bfaaeecf
2 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,8 @@ jobs:
- name: Download SSL certificate from S3 - name: Download SSL certificate from S3
run: | run: |
aws s3 cp ${{ secrets.CERT_S3_URL }} ./cert.pem aws s3 cp ${{ secrets.CERT_S3_URL }} ./cert.pem
mkdir -p porter/cert
cp cert.pem porter/cert/
- name: Set Github tag - name: Set Github tag
id: vars id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

View File

@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y \
&& update-ca-certificates \ && update-ca-certificates \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY cert.pem /usr/local/share/ca-certificates/cert.crt COPY porter/cert/cert.pem /usr/local/share/ca-certificates/cert.crt
RUN update-ca-certificates RUN update-ca-certificates
COPY --from=builder /app/target/release/bi_api . COPY --from=builder /app/target/release/bi_api .