-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1.14 KB
/
main.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
name: main
on:
push:
tags:
- v*
jobs:
build:
runs-on: [ self-hosted, docker, linux, x64 ]
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm ci
npm run build
- name: Push to dev
env:
CONTAINER_REGISTRY: ${{ secrets.DEV_REGISTRY }},${{ secrets.DMZ_REGISTRY }},${{ secrets.STAGING_REGISTRY }}
REGISTRY_USERNAME: ${{ secrets.DEV_REGISTRY_USER }},${{ secrets.DMZ_USERNAME }},${{ secrets.STAGING_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.DEV_REGISTRY_PASSWORD }},${{ secrets.DMZ_PASSWORD }},${{ secrets.STAGING_PASSWORD }}
CENTRAL_API_CONNECTION_STRING: ${{ secrets.CENTRAL_API_CONNECTION_STRING }}
run: npm run start