Skip to content

Instantly share code, notes, and snippets.

View pretty25's full-sized avatar
😃
Focusing

pretty25

😃
Focusing
View GitHub Profile
@pretty25
pretty25 / java-webapp-az-pipeline.yaml
Created June 23, 2020 00:29
Automate Java container deployments with Azure Pipelines
az configure --defaults location=westus2
# resourceSuffix=$RANDOM
# webName="java-container-cicd-${resourceSuffix}"
# registryName="javacontainercicd${resourceSuffix}"
# dbServerName="java-container-cicd-${resourceSuffix}"
# rgName='java-containers-cicd-rg'
# planName='java-container-cicd-asp'
# az group create --name $rgName
@pretty25
pretty25 / azure-pipelines.yaml
Created April 21, 2020 16:24
azure-pipelines-k8-deploy
# Deploy to Azure Kubernetes Service
# Build and push image to Azure Container Registry; Deploy to Azure Kubernetes Service
trigger:
- master
resources:
- repo: self
variables:
@pretty25
pretty25 / ms-app-deploy.yaml
Created April 21, 2020 16:17
ms-app-deploy
---
- name: "remove old PortalAPI folder"
win_file:
path: '{{ deploy_staging_dir }}\PortalAPI'
state: absent
- name: create download dir on controlhost
file:
path="/tmp/{{ PROJECT }}"
state=directory
@pretty25
pretty25 / Bikes_availability.html
Created April 21, 2020 16:15
Bikes_availability.html
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var str = $("#idOfBikePoint").val();
var url ="https://api.tfl.gov.uk/Place/"+str;
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
selector:
matchLabels:
app: nginx
replicas: 1
template:
pipeline {
agent any
stages {
stage("Code Checkout") {
steps {
git branch: 'master',
//The repository containing the sonar-project.properties
url: 'https://github.com/pretty25/jenkins-git-integration.git'
}