Skip to content

Commit 3e9364d

Browse files
authored
Merge pull request #338 from YujithIsura/newNomination
missing file added for platformer
2 parents 6abaf48 + 646f7d1 commit 3e9364d

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Platformer Generated stag-api-tag-push Build
2+
'on':
3+
push:
4+
tags:
5+
- stag*
6+
jobs:
7+
build:
8+
runs-on:
9+
- ubuntu-latest
10+
env:
11+
SERVICE_NAME: ghcr.io/eclk/nomination
12+
CONTAINER_REGISTRY: ghcr.io
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set Version
16+
id: event-version
17+
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
18+
- name: Login to GitHub Container Registry
19+
uses: docker/login-action@v1
20+
with:
21+
registry: ${{ env.CONTAINER_REGISTRY }}
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.DOCKER_PASSWORD_04D64A45_AF67_40BD_88CB_66AD84E486B7 }}
24+
- name: Build the Docker image
25+
run: docker build --tag ${SERVICE_NAME}:${{steps.event-version.outputs.SOURCE_TAG }} --file ./server/Dockerfile ./server
26+
- name: GitHub Image Push
27+
run: docker push $SERVICE_NAME:${{steps.event-version.outputs.SOURCE_TAG }}
28+
- name: Platformer Deploy
29+
uses: platformer-com/build-deploy-action@v1
30+
with:
31+
org-id: ${{secrets.ORG_ID_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}}
32+
project-id: ${{secrets.PROJECT_ID_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}}
33+
token: ${{secrets.AUTOGENERATED_CICD_5B1B6B11_FF45_48E4_BA37_2AD509CB21E7}}
34+
image-name: ${{env.SERVICE_NAME}}
35+
tag: ${{steps.event-version.outputs.SOURCE_TAG }}
36+
container-id: fc6f2843-4674-43c9-bad1-d6529b81cd66

server/src/routes/schema/nominationSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export let services2 = Joi.array().items(UPDATE_SUPPORT_DOC_SCHEMA)
4848

4949
export const SAVE_CANDIDATE_SCHEMA = Joi.object().keys({
5050
candidateData: Joi.array().items(Joi.object({
51-
candidateConfigID: Joi.number().integer().required(),
51+
candidateConfigID: Joi.number().integer().required(),
5252
value: Joi.string().max(300).required(true)
5353
})).allow(null),
5454
nominationId: Joi.string().max(36).regex(/^[A-Za-z0-9-]+$/),

0 commit comments

Comments
 (0)