Skip to content

Commit

Permalink
fix(ci) api build
Browse files Browse the repository at this point in the history
  • Loading branch information
helderbetiol committed Jan 10, 2024
1 parent ddae1a0 commit 8dc0888
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/actions/build/docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
FOLDER_NAME:
description: "Folder name of the Dockerfile"
required: true
DOCKERFILE:
description: "Name of Dockerfile, can include path"
default: "Dockerfile"
VERSION:
description: "Version given to docker image"
required: true
Expand Down Expand Up @@ -41,7 +44,7 @@ runs:
if: ${{ !contains('dependabot', github.ref) }}
shell: bash
run: |
docker build -t ${{ inputs.IMAGE_NAME }}:latest ${{ inputs.FOLDER_NAME }}
docker build -t ${{ inputs.IMAGE_NAME }}:latest -f ${{ inputs.DOCKERFILE }} ${{ inputs.FOLDER_NAME }}
docker tag ${{ inputs.IMAGE_NAME }}:latest ${{ inputs.TEAM_DOCKER_URL }}/${{ inputs.IMAGE_NAME }}:latest
docker tag ${{ inputs.IMAGE_NAME }}:latest ${{ inputs.TEAM_DOCKER_URL }}/${{ inputs.IMAGE_NAME }}:${{ inputs.VERSION }}
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/build/multi-platform/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ runs:
uses: ./.github/actions/build/docker
with:
IMAGE_NAME: "mongo-api"
FOLDER_NAME: "./API"
FOLDER_NAME: "."
DOCKERFILE: "API/Dockerfile"
VERSION: ${{ env.VERSION }}
TEAM_DOCKER_URL: ${{ inputs.TEAM_DOCKER_URL }}
TEAM_USERNAME: ${{ inputs.TEAM_USERNAME }}
Expand Down

0 comments on commit 8dc0888

Please sign in to comment.