This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ${CI_PROJECT_NAME}-deployment | |
namespace: ${NAMESPACE} | |
spec: | |
replicas: 1 | |
revisionHistoryLimit: 2 | |
selector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ${CI_PROJECT_NAME}-service | |
namespace: tim | |
spec: | |
type: NodePort | |
ports: | |
- port: 8080 | |
targetPort: 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.go$') | |
[ -z "$gofiles" ] && exit 0 | |
unformatted=$(gofmt -l $gofiles) | |
[ -z "$unformatted" ] || echo "needs formatting: $unformatted" | |
# tests | |
echo "running tests before commiting go files" | |
go test -v -race $(go list ./... | grep -v /vendor/) | |
RESULT=$? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x50fcfA338C061Ed28263CBa49Cf9692C09b1De5B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x672f94852D2F3D789F0e201d1F15Be0f2db32dec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script> | |
<script src="todoController.js"></script> | |
<script src="todo.js"></script> | |
<style type="text/css"> | |
.todoCompleted { | |
text-decoration: line-through; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html ng-app> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script> | |
</head> | |
<body> | |
<input type="text" ng-model="isminiz" placeholder="Adınızı Giriniz"> <br/> | |
Merhaba {{isminiz}} | |
</body> | |
</html> |