This repository was archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
79 lines (72 loc) · 2.1 KB
/
Copy pathci.yml
File metadata and controls
79 lines (72 loc) · 2.1 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
on:
push:
branches:
- master
- develop
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: eslint
uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-review # Change reporter.
eslint_flags: 'src/'
- name: Dockerfile
uses: reviewdog/action-hadolint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Default is github-pr-check
level: warning
netlify:
name: Build and Deploy preview on Netlify
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'
steps:
- uses: actions/checkout@master
- name: Waiting for 300sec from the Netlify preview
uses: jakepartusch/wait-for-netlify-action@v1
id: waitFor300
with:
site_name: "boogi"
max_timeout: 300
- name: Netlify deploy logs
uses: bdougie/loglify@master
docker:
name: Build Docker images
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
dockerfile: ['Dockerfile.builder', 'Dockerfile.runtime', 'Dockerfile.develop']
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build Docker image
uses: docker/build-push-action@v1.1.0
with:
username: filipowm
password: ${{ secrets.DOCKER_REGISTRY_PASS }}
repository: filipowm/boogi
tags: latest
tag_with_ref: true
tag_with_sha: false
# Path to the Dockerfile (Default is '{path}/Dockerfile')
dockerfile: docker/${{ matrix.dockerfile }}
always_pull: false
cache_froms: node:buster-slim
add_git_labels: true
push: false # optional, default is true