This file contains hidden or 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/bash | |
SOURCE="${BASH_SOURCE[0]}" | |
SRC_DIR="$(cd -P "$(dirname "$SOURCE")"&&pwd)" | |
WORKDIR="/usr/src" | |
IMAGENAME="microsoft/aspnetcore-build" | |
COMMAND="./build.sh" | |
docker pull "$IMAGENAME" | |
docker run --rm -w "$WORKDIR" -v "$SRC_DIR":"$WORKDIR" -- "$IMAGENAME" $COMMAND |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Hosting; | |
namespace WebApplication24 | |
{ | |
public abstract class HostedService : IHostedService |
This file contains hidden or 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
const xml2js = require('xml2js'); | |
const fs = require('fs'); | |
const xmlFileName = 'deployments.xml'; | |
const environment = 'PROD'; | |
const year = '2019'; | |
xml2js.parseString(fs.readFileSync(xmlFileName), function (err, result) { | |
if (err) throw err; |
OlderNewer