Skip to content

Commit

Permalink
Disable staging in techetechete
Browse files Browse the repository at this point in the history
  • Loading branch information
made2591 committed Nov 22, 2021
1 parent c6d2dbe commit 7722612
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
PLUGIN_DEPTH: 5

- name: cache-restore
image: public.ecr.aws/prima/drone-tools:1.21.0
image: public.ecr.aws/prima/drone-tools:1.21.2
commands:
- . /etc/profile.d/ecs-credentials-endpoint
- cache-restore
Expand All @@ -27,13 +27,11 @@ steps:
path: /etc/profile.d/ecs-credentials-endpoint
- name: docker
path: /var/run/docker.sock
- name: docker-conf
path: /root/.docker
depends_on:
- git-clone

- name: check-secrets
image: public.ecr.aws/prima/drone-tools:1.21.0
image: public.ecr.aws/prima/drone-tools:1.21.2
commands:
- . /etc/profile.d/ecs-credentials-endpoint
- check-secrets-grants
Expand All @@ -44,22 +42,20 @@ steps:
- git-clone

- name: check-public-docker-images
image: public.ecr.aws/prima/drone-tools:1.21.0
image: public.ecr.aws/prima/drone-tools:1.21.2
commands:
- check-public-docker-images
depends_on:
- git-clone

- name: build-image
image: public.ecr.aws/prima/drone-tools:1.21.0
image: public.ecr.aws/prima/drone-tools:1.21.2
commands:
- sed -i 's/USER app/USER root/g' ./Dockerfile
- docker build -t prima/teleplug-ci:${DRONE_COMMIT} ./
volumes:
- name: docker
path: /var/run/docker.sock
- name: docker-conf
path: /root/.docker
depends_on:
- cache-restore

Expand Down Expand Up @@ -125,7 +121,7 @@ steps:
- elixir-compile

- name: cache-save
image: public.ecr.aws/prima/drone-tools:1.21.0
image: public.ecr.aws/prima/drone-tools:1.21.2
commands:
- . /etc/profile.d/ecs-credentials-endpoint
- cache-save _build deps
Expand All @@ -136,8 +132,6 @@ steps:
path: /etc/profile.d/ecs-credentials-endpoint
- name: docker
path: /var/run/docker.sock
- name: docker-conf
path: /root/.docker
when:
branch:
- master
Expand All @@ -156,9 +150,6 @@ volumes:
- name: ecs
host:
path: /etc/profile.d/ecs-credentials-endpoint
- name: docker-conf
host:
path: /home/ec2-user/.docker

trigger:
event:
Expand All @@ -182,7 +173,7 @@ steps:
PLUGIN_DEPTH: 5

- name: cache-restore
image: public.ecr.aws/prima/drone-tools:1.21.0
image: public.ecr.aws/prima/drone-tools:1.21.2
commands:
- . /etc/profile.d/ecs-credentials-endpoint
- cache-restore
Expand All @@ -193,21 +184,17 @@ steps:
path: /etc/profile.d/ecs-credentials-endpoint
- name: docker
path: /var/run/docker.sock
- name: docker-conf
path: /root/.docker
depends_on:
- git-clone

- name: build-image
image: public.ecr.aws/prima/drone-tools:1.21.0
image: public.ecr.aws/prima/drone-tools:1.21.2
commands:
- sed -i 's/USER app/USER root/g' ./Dockerfile
- docker build -t prima/teleplug-ci:${DRONE_COMMIT} ./
volumes:
- name: docker
path: /var/run/docker.sock
- name: docker-conf
path: /root/.docker
depends_on:
- cache-restore

Expand All @@ -233,9 +220,6 @@ volumes:
- name: ecs
host:
path: /etc/profile.d/ecs-credentials-endpoint
- name: docker-conf
host:
path: /home/ec2-user/.docker

trigger:
event:
Expand Down Expand Up @@ -281,6 +265,6 @@ depends_on:

---
kind: signature
hmac: dc07caf135d991465b9ce6b57b538aedda25d5a5963cc5873360f6d8b7c49ce3
hmac: b36025e5c42d8a039d5fbaf7e6f1ae1b903ec4ed1935b24b99290b8d05125856

...

0 comments on commit 7722612

Please sign in to comment.