Skip to content

Commit 62e0bab

Browse files
authored
Merge pull request #911 from ECLK/kosalag-patch-6
Platformer GitHub Action Created
2 parents 81a506e + 23d10a4 commit 62e0bab

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Platformer Generated ui-stag-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/results-tabulation
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_9F99429F_1443_4FB8_9AFA_8B3A9D362E90 }}
24+
- name: Build the Docker image
25+
run: docker build --tag ${SERVICE_NAME}:${{steps.event-version.outputs.SOURCE_TAG }} --file ./results-tabulation-ui/Dockerfile ./results-tabulation-ui/ --build-arg AUTH_APP_URL="https://tabulations.ecstage.opensource.lk" --build-arg TABULATION_API_URL="https://apim-gw.ecstag.opensource.lk/tabulation/0.1.0"
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_FCB1AEBE_71DB_4911_9067_F5FA9BA73D4D}}
32+
project-id: ${{secrets.PROJECT_ID_FCB1AEBE_71DB_4911_9067_F5FA9BA73D4D}}
33+
token: ${{secrets.AUTOGENERATED_CICD_FCB1AEBE_71DB_4911_9067_F5FA9BA73D4D}}
34+
image-name: ${{env.SERVICE_NAME}}
35+
tag: ${{steps.event-version.outputs.SOURCE_TAG }}
36+
container-id: 38522196-e2fb-453e-9729-2aac6c203042

0 commit comments

Comments
 (0)