Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
tnsoftbear committed Aug 17, 2024
1 parent b7b2892 commit a882923
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/publish-to-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
publish-to-repo:
# if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.event == 'push' }}
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.event == 'push' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -21,7 +21,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Build and push Docker image
# run: |
# docker build -t ghcr.io/${{ github.repository }}/md-ship-app:latest -f .
# docker push ghcr.io/${{ github.repository }}/md-ship-app:latest

- name: Build and push Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}/my-app:latest .
docker push ghcr.io/${{ github.repository }}/my-app:latest
uses: docker/build-push-action@v3
with:
file: ./deploy/docker/app/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/md-ship-app:latest
1 change: 0 additions & 1 deletion internal/app/action/loading.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func FindParcelLockersByCustomerId(
ctx.JSON(http.StatusInternalServerError, gin.H{"id": id, "message": err.Error()})
return
}

ctx.JSON(http.StatusOK, gin.H{"parcel_lockers": parcel_lockers})
}
}

0 comments on commit a882923

Please sign in to comment.