diff --git a/.drone.yml b/.drone.yml index 5415c42..dac0e00 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,14 @@ pipeline: - go build - go test + ecr: + image: plugins/ecr + repo: 995121555896.dkr.ecr.us-east-1.amazonaws.com/cloudlock/test-sit-ci-built-svc + dockerfile: ./Dockerfile + context: . + volumes: + - /var/run/docker.sock:/var/run/docker.sock + matrix: IMAGE: - golang:1.7 diff --git a/.drone.yml.sig b/.drone.yml.sig new file mode 100644 index 0000000..9c2465c --- /dev/null +++ b/.drone.yml.sig @@ -0,0 +1 @@ +eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogJHtJTUFHRX0KICAgIGNvbW1hbmRzOgogICAgICAtIGdvIGJ1aWxkCiAgICAgIC0gZ28gdGVzdAoKICBlY3I6CiAgICBpbWFnZTogcGx1Z2lucy9lY3IKICAgIHJlcG86IDk5NTEyMTU1NTg5Ni5ka3IuZWNyLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tL2Nsb3VkbG9jay90ZXN0LXNpdC1jaS1idWlsdC1zdmMKICAgIGRvY2tlcmZpbGU6IC4vRG9ja2VyZmlsZQogICAgY29udGV4dDogLgogICAgdm9sdW1lczoKICAgICAgLSAvdmFyL3J1bi9kb2NrZXIuc29jazovdmFyL3J1bi9kb2NrZXIuc29jawoKbWF0cml4OgogIElNQUdFOgogICAgLSBnb2xhbmc6MS43CiAgICAtIGdvbGFuZzoxLjgKICAgIC0gZ29sYW5nOmxhdGVzdAo.W1WVwuySlWLl6SH711FinUAo8ygM3vR9R-wORel729M \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..015b7cb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM golang:latest +RUN mkdir /app +ADD . /app/ +WORKDIR /app +RUN go build -o main . +CMD ["/app/main"]