Skip to content

Commit

Permalink
refactor: Comment out close tab
Browse files Browse the repository at this point in the history
Signed-off-by: Jerrico Dela Cruz <[email protected]>
  • Loading branch information
jerricotandelacruz committed Oct 28, 2024
1 parent dc1be86 commit 5135a0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ jobs:
login-server: ${{ secrets.CONTAINER_REGISTRY_SERVER }}
username: ${{ secrets.CONTAINER_REGISTRY_SERVER_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_SERVER_PASSWORD }}
- name: Get the version from Git tags
id: get_version
run: echo "VERSION=$(git describe --tags --always)-${{ github.sha }}" >> $GITHUB_ENV
- run: |
docker build . -t ${{ secrets.CONTAINER_REGISTRY_SERVER }}/${{ vars.APPSERVICE_NAME }}:${{ env.VERSION }}
docker push ${{ secrets.CONTAINER_REGISTRY_SERVER }}/${{ vars.APPSERVICE_NAME }}:${{ env.VERSION }}
docker build . -t ${{ secrets.CONTAINER_REGISTRY_SERVER }}/${{ vars.APPSERVICE_NAME }}:${{ github.sha }} -t ${{ secrets.CONTAINER_REGISTRY_SERVER }}/${{ vars.APPSERVICE_NAME }}:latest
docker push ${{ secrets.CONTAINER_REGISTRY_SERVER }}/${{ vars.APPSERVICE_NAME }}
2 changes: 1 addition & 1 deletion src/goapp/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func setPageRoutes() {
httpRouter.NOTFOUND(m.Chain(rtPages.NotFoundHandler))
httpRouter.NOTFOUND(m.Chain(rtPages.NotFoundHandler, m.AzureAuth()))

httpRouter.GET("/", m.Chain(rtPages.HomeHandler, m.AzureAuth()))
httpRouter.GET("/error/ghlogin", m.Chain(rtPages.GHLoginRequire, m.AzureAuth()))
Expand Down
2 changes: 1 addition & 1 deletion src/goapp/templates/authenticationfailed.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
if (window.opener == null) window.location = "/";

window.opener.postMessage('failed');
window.close();
// window.close();
</script>
2 changes: 1 addition & 1 deletion src/goapp/templates/authenticationsuccessful.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
if (window.opener == null) window.location = "/";

window.opener.postMessage('success');
window.close();
// window.close();
</script>

0 comments on commit 5135a0e

Please sign in to comment.