Skip to content

Commit

Permalink
fix: need to set docker build context to include local files (#51)
Browse files Browse the repository at this point in the history
* fix: need to set docker build context to include local files

* chore: update CHANGELOG.md
  • Loading branch information
kelly-sovacool authored Dec 23, 2024
1 parent d53c280 commit e1708b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- make citation files optional for `draft-release` and `post-release`. (#44, @kelly-sovacool)
- fix `post-release` action to properly update the sliding branch when new releases have incompatible history (typically due to rebasing). (#46, @kelly-sovacool)
- new documentation website: <https://CCBR.github.io/actions>. (#48, #49, @kelly-sovacool)
- fix `build-docker` to set the docker build context as the same directory as the Dockerfile. (#51, @kelly-sovacool)

## actions 0.2.2

Expand Down
1 change: 1 addition & 0 deletions build-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ runs:
uses: docker/build-push-action@v5
with:
file: ${{ env.DOCKERFILE }}
context: ${{ env.CONTEXT }}
push: ${{ inputs.push }}
tags: ${{ env.IMAGENAME }}
build-args: |
Expand Down
1 change: 1 addition & 0 deletions scripts/prepare_docker_build_variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ artifact_name=$(echo $mdfile | sed 's|/|_|g')

# Output each variable to $GITHUB_ENV to pass it to the next steps
echo "DOCKERFILE=$dockerfile" >> $GITHUB_ENV
echo "CONTEXT=$(dirname $dockerfile)" >> $GITHUB_ENV
echo "IMAGENAME=$imagename" >> $GITHUB_ENV
echo "BASEIMAGENAME=$baseimagename" >> $GITHUB_ENV
echo "BUILD_DATE=$dt" >> $GITHUB_ENV
Expand Down

0 comments on commit e1708b7

Please sign in to comment.