-
Notifications
You must be signed in to change notification settings - Fork 32
41 lines (41 loc) · 1.52 KB
/
platformer-17798494-4ccf-4192-9cf5-02ebcbe8ab89.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Platformer Generated ui-master-push Build
on:
push:
branches:
- newNomination
jobs:
build:
runs-on:
- ubuntu-latest
env:
SERVICE_NAME: ghcr.io/eclk/nomination
CONTAINER_REGISTRY: ghcr.io
steps:
- uses: actions/checkout@v2
- name: Set Version
id: event-version
run: echo ::set-output
name=SOURCE_TAG::${GITHUB_REF#refs/heads/}-${{github.sha}}
- name: update node packages list
run: cd ./client && npm install
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ${{ env.CONTAINER_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build the Docker image
run: docker build --tag
${SERVICE_NAME}:${{steps.event-version.outputs.SOURCE_TAG }} --file
./client/Dockerfile ./client/
- name: GitHub Image Push
run: docker push $SERVICE_NAME:${{steps.event-version.outputs.SOURCE_TAG }}
- name: Platformer Deploy
uses: platformer-com/build-deploy-action@v1
with:
org-id: ${{secrets.ORG_ID_92DA1243_81F5_47E6_B824_A409AD65A74D}}
project-id: ${{secrets.PROJECT_ID_92DA1243_81F5_47E6_B824_A409AD65A74D}}
token: ${{secrets.AUTOGENERATED_CICD_92DA1243_81F5_47E6_B824_A409AD65A74D}}
image-name: ${{env.SERVICE_NAME}}
tag: ${{steps.event-version.outputs.SOURCE_TAG }}
container-id: dce3523e-278b-4fde-ac52-c1821539c48a