Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
kokal33 committed Oct 5, 2023
1 parent 3127030 commit 7d8248e
Show file tree
Hide file tree
Showing 4 changed files with 5 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.
File renamed without changes.

0 comments on commit 7d8248e

Please sign in to comment.