Skip to content

Instantly share code, notes, and snippets.

View dataneek's full-sized avatar

Nic Myers dataneek

View GitHub Profile
@jlis
jlis / .gitlab-ci.yml
Created May 15, 2018 13:16
AWS ECS and ECR deployment via Docker and Gitlab CI
image: docker:latest
variables:
REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME>
REGION: eu-central-1
TASK_DEFINTION_NAME: <TASK DEFINITION NAME>
CLUSTER_NAME: <CLUSTER NAME>
SERVICE_NAME: <SERVICE NAME>
services:
@wshirey
wshirey / AutoMapperRegistry
Created February 10, 2016 15:31
How to register AutoMapper profiles with IoC dependencies using structuremap
public class AutoMapperRegistry : Registry
{
public AutoMapperRegistry()
{
Scan(scanner =>
{
scanner.TheCallingAssembly();
scanner.AddAllTypesOf<Profile>();
});