From c12ec5a1f83055e8072e1bb0720ea2d0b4702982 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 14 May 2024 09:12:32 +0300 Subject: [PATCH 1/2] fix dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d533d19d..78c0ee25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] From 9c6fa05f50d8e411772b94c28eaecd4ab92259ef Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 14 May 2024 09:14:33 +0300 Subject: [PATCH 2/2] clean up docker action --- .github/workflows/docker.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0c737cae..5b6cacb9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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: @@ -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 }}