Skip to content

Commit

Permalink
Merge pull request #262 from ralexstokes/fix-docker
Browse files Browse the repository at this point in the history
Fix docker file and action
  • Loading branch information
ralexstokes authored May 14, 2024
2 parents 5b3c35c + 9c6fa05 commit 0236310
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ concurrency:
cancel-in-progress: true

env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
IMAGE_NAME: ${{ github.repository_owner}}/mev-rs

jobs:
Expand Down Expand Up @@ -44,16 +42,15 @@ jobs:
VERSION: ${{ needs.extract-version.outputs.VERSION }}
steps:
- uses: actions/checkout@v4
- name: Dockerhub login
run: |
echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME}}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./Dockerfile
context: .
platforms: linux/x86_64
push: true
tags: ${{ env.IMAGE_NAME }}:${{ env.VERSION }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ WORKDIR /app

EXPOSE 18550
EXPOSE 28545
COPY --from=builder /app/target/release/mev /usr/local/bin
COPY --from=builder mev /usr/local/bin

ENTRYPOINT [ "/usr/local/bin/mev" ]

0 comments on commit 0236310

Please sign in to comment.