Skip to content

Commit

Permalink
Merge pull request #5262 from filecoin-project/fix/tanlang/fix-ci-to-…
Browse files Browse the repository at this point in the history
…build-docker

fix: download dockerfile before build
  • Loading branch information
zl03jsj authored Sep 2, 2022
2 parents 9e0597a + 012deac commit d27d55a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/common_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
- name: Build the Docker image
if: ${{ steps.vars.outputs.is_tag_create == 'true' }}
run: |
docker build . --file dockerfile --tag ${{steps.vars.outputs.docker_user_name}}/${{steps.vars.outputs.repo_name}}:latest
curl -O https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/dockerfile
docker build . --file dockerfile --build-arg BUILD_TARGET=${{steps.vars.outputs.repo_name}} --tag ${{steps.vars.outputs.docker_user_name}}/${{steps.vars.outputs.repo_name}}:latest
docker tag ${{steps.vars.outputs.docker_user_name}}/${{steps.vars.outputs.repo_name}}:latest ${{steps.vars.outputs.docker_user_name}}/${{steps.vars.outputs.repo_name}}:${{ steps.vars.outputs.github_tag }}
docker login --username=${{steps.vars.outputs.docker_user_name}} --password ${{ secrets.DOCKER_PASSWORD }}
docker push ${{steps.vars.outputs.docker_user_name}}/${{steps.vars.outputs.repo_name}}:${{ steps.vars.outputs.github_tag }}
Expand Down

0 comments on commit d27d55a

Please sign in to comment.