Skip to content

Commit

Permalink
ci: docker build test
Browse files Browse the repository at this point in the history
  • Loading branch information
lihua committed Apr 25, 2024
1 parent 630f7f3 commit 5413427
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Dependency Review"
on: pull_request
on: [push, pull_request]

permissions:
contents: read
Expand All @@ -21,7 +21,7 @@ jobs:
go.mod
go.sum
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
uses: actions/dependency-review-action@v4
if: env.GIT_DIFF
- name: "Go vulnerability check"
run: make vulncheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
run: |
echo "tag=$(git describe --always --tags --match='v*')" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: docker.io
username: tharsishq
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.20.2-bullseye AS build-env

WORKDIR /go/src/github.com/evmos/evmos
WORKDIR /app

RUN apt-get update -y
RUN apt-get install git -y
Expand All @@ -16,8 +16,8 @@ RUN apt-get install ca-certificates jq -y

WORKDIR /root

COPY --from=build-env /go/src/github.com/evmos/evmos/build/evmosd /usr/bin/evmosd
COPY --from=build-env /app/build/mechaind /usr/bin/mechaind

EXPOSE 26656 26657 1317 9090 8545 8546

CMD ["evmosd"]
CMD ["mechaind"]

0 comments on commit 5413427

Please sign in to comment.