Skip to content

Commit

Permalink
Merge pull request #119 from 0chain/bugfix/miner-build
Browse files Browse the repository at this point in the history
fix the docker build for miner
  • Loading branch information
satchinjoshi committed Mar 18, 2021
2 parents cbb43d0 + 217c90d commit 2e7ec0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ jobs:

- name: Build miner
run: |
docker build --build-arg GIT_COMMIT=$GITHUB_SHA -t miner -f docker.local/build.miner/Dockerfile .
docker tag miner $MINER_REGISTRY:$TAG
sed 's,%COPY%,COPY --from=miner_build $APP_DIR,g' "$DOCKERFILE_MINER.template" > "$DOCKERFILE_MINER"
docker build --build-arg GIT_COMMIT=$GITHUB_SHA -t $MINER_REGISTRY:$TAG -f "$DOCKERFILE_MINER" .
docker push $MINER_REGISTRY:$TAG
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
DOCKERFILE_MINER: "docker.local/build.miner/Dockerfile"

dockerize_sharder:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 2e7ec0b

Please sign in to comment.