Skip to content

Commit

Permalink
chore: undo accidental change in vote example
Browse files Browse the repository at this point in the history
  • Loading branch information
stefreak committed Dec 21, 2023
1 parent 4c3e4c4 commit 0bf1b08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
10 changes: 1 addition & 9 deletions examples/vote/vote/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.18.1-alpine as default
FROM node:16.18.1-alpine

WORKDIR /app

Expand All @@ -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"
29 changes: 0 additions & 29 deletions examples/vote/vote/garden.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -25,7 +10,6 @@ name: vote
type: container
build: vote
dependencies:
- run.prepare-db
- deploy.api
spec:
args: [npm, run, serve]
Expand Down Expand Up @@ -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}"

0 comments on commit 0bf1b08

Please sign in to comment.