Skip to content

Commit

Permalink
Merge pull request #33 from filecoin-project/fix-deploy-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbesraa authored Oct 5, 2023
2 parents 3127030 + 1d87667 commit 5c04084
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v1
Expand All @@ -30,8 +30,8 @@ jobs:
- name: Build and tag Docker image
run: |
echo "Building Docker image..."
docker build . -t "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}"
docker build -f http-server/Dockerfile -t "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}" http-server
- name: Push Docker image to ECR
run: |
echo "Pushing Docker image to ECR..."
Expand Down Expand Up @@ -70,6 +70,3 @@ jobs:
--region us-east-2 \
--containers file://containers.json \
--public-endpoint file://public-endpoint.json
4 changes: 2 additions & 2 deletions lib/Dockerfile → http-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ FROM debian:bullseye

# Needed for openssl(hyper uses it)
RUN apt-get update && apt-get install -y libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder ./target/release/filplus-core ./target/release/filplus-core
CMD ["/target/release/filplus-core"]
COPY --from=builder ./target/release/http-server ./target/release/http-server
CMD ["/target/release/http-server"]
File renamed without changes.
28 changes: 28 additions & 0 deletions http-server/gh-private-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAv9hBfOdLDLDMvD1b7ee2yK94QKildsrl4f/SjKLLxnTCoj6j
7oA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