Skip to content

Commit ad19cc8

Browse files
committed
Add deployment config
1 parent dc315b7 commit ad19cc8

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci_cd.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "CI / CD"
2+
on:
3+
push:
4+
branches:
5+
- live
6+
- develop
7+
jobs:
8+
setup:
9+
runs-on: ubuntu-latest
10+
name: Build & Deploy
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
repository: br-data/cloud-deploy-action
15+
token: ${{ secrets.BRDATA_ACCESS }}
16+
path: ./
17+
- id: build-and-deploy
18+
name: Build and Deploy
19+
uses: ./
20+
with:
21+
access_token: ${{ secrets.BRDATA_ACCESS }}
22+
repo_name: ${{ github.event.repository.name }}
23+
tag: ${{ github.sha }}
24+
branch: ${{ github.ref }}
25+
basic_auth: ${{ secrets.BASIC_PW }}
26+
gpg_key: ${{ secrets.GPG_ACTION_PASSPHRASE }}

config.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
isEnabled: true
2+
image:
3+
preset: node
4+
build:
5+
command: npm install
6+
run:
7+
command: npm start
8+
envs:
9+
- name: DATAWRAPPER_API_KEY
10+
value: 'sm://{{.projectId}}/datawrapper-api-key'
11+
settings:
12+
type: cronjob
13+
schedule: 0 4,15 * * *
14+
concurrencyPolicy: Replace

0 commit comments

Comments
 (0)