Skip to content

Commit

Permalink
Merge pull request #8 from DaoCloud/fix_ci1
Browse files Browse the repository at this point in the history
CI: Fix the error context of docker build
  • Loading branch information
cyclinder authored Apr 29, 2024
2 parents 2a41278 + 6624a4f commit 3411590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/call-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
continue-on-error: false
id: docker_build_master
with:
context: .
context: ./images
file: ./images/Dockerfile
# Only push when the event name was a GitHub push, this is to avoid
# re-pushing the image tags when we only want to re-create the Golang
Expand All @@ -93,8 +93,8 @@ jobs:
continue-on-error: false
id: docker_build_pr
with:
context: .
file: ./Dockerfile
context: ./images
file: ./images/Dockerfile
# Only push when the event name was a GitHub push, this is to avoid
# re-pushing the image tags when we only want to re-create the Golang
# docker cache after the workflow "Image CI Cache Cleaner" was terminated.
Expand All @@ -104,7 +104,7 @@ jobs:
outputs: type=docker,dest=/tmp/image.tar
github-token: ${{ secrets.GITHUB_TOKEN }}
tags: |
${{ env.ONLINE_REGISTER }}/${{ github.repository }}:${{ inputs.tag }}
${{ env.ONLINE_REGISTER }}/${{ steps.arg.outputs.repo }}:${{ inputs.tag }}
build-args: |
GIT_COMMIT_VERSION=${{ steps.arg.outputs.commit_version }}
GIT_COMMIT_TIME=${{ steps.arg.outputs.commit_time }}
Expand Down

0 comments on commit 3411590

Please sign in to comment.