From 0bf1b08fe7e937b5ff466e12123fa2068cce2d73 Mon Sep 17 00:00:00 2001 From: Steffen Neubauer Date: Thu, 21 Dec 2023 17:33:37 +0100 Subject: [PATCH] chore: undo accidental change in vote example --- examples/vote/vote/Dockerfile | 10 +--------- examples/vote/vote/garden.yml | 29 ----------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/examples/vote/vote/Dockerfile b/examples/vote/vote/Dockerfile index af44d57656..f185a7509b 100644 --- a/examples/vote/vote/Dockerfile +++ b/examples/vote/vote/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16.18.1-alpine as default +FROM node:16.18.1-alpine WORKDIR /app @@ -8,12 +8,4 @@ RUN npm install RUN mkdir node_modules/.cache && chmod -R 777 node_modules/.cache ADD . /app -RUN echo "default" > /.mode -RUN echo "default" - CMD ["npm", "run", "serve"] - -FROM default as sync - -RUN echo "sync" > /.mode -RUN echo "sync" diff --git a/examples/vote/vote/garden.yml b/examples/vote/vote/garden.yml index 606d43efdf..07c6e6b758 100644 --- a/examples/vote/vote/garden.yml +++ b/examples/vote/vote/garden.yml @@ -1,21 +1,6 @@ kind: Build name: vote type: container -spec: - targetStage: - $if: "${this.mode == 'sync'}" - $then: sync - $else: default - - ---- -kind: Run -name: prepare-db -build: vote -type: container -spec: - args: ["cat", "/.mode"] - --- kind: Deploy @@ -25,7 +10,6 @@ name: vote type: container build: vote dependencies: - - run.prepare-db - deploy.api spec: args: [npm, run, serve] @@ -66,16 +50,3 @@ dependencies: timeout: 60 spec: args: [npm, run, test:integ] - ---- -kind: Run -type: exec -name: echo-vars -spec: - command: - - /bin/sh - - "-c" - - | - echo "actions.build.vote.mode: ${actions.build.vote.mode}" - echo "actions.deploy.vote.mode: ${actions.deploy.vote.mode}" - echo "actions.test.vote-unit.mode: ${actions.test.vote-unit.mode}"