-
Notifications
You must be signed in to change notification settings - Fork 31
75 lines (65 loc) · 2.35 KB
/
build.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
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
name: 'Build'
on:
workflow_dispatch:
push:
branches: [release]
paths-ignore:
- docs/**
- README.md
- .github/**
- cloudformation/**
- db_scripts/**
- jenkins/**
- kibana-proxy/**
- postgresql/**
pull_request:
branches: [main, 'feature-*']
paths-ignore:
- docs/**
- README.md
- .github/**
- cloudformation/**
- db_scripts/**
- jenkins/**
- kibana-proxy/**
- postgresql/**
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install system packages
run: |
sudo apt-get update -qy && sudo apt-get dist-upgrade -qy && sudo apt-get install -qy \
libmemcached-dev libz-dev libfreetype6-dev libtiff-dev \
libjpeg-dev libopenjp2-7-dev libwebp-dev zlib1g-dev libpq-dev
- name: Install node and npm
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Initialize venv install Dependencies
run: |
python3 -m venv venv-1
source venv-1//bin/activate
python3 -m pip install --upgrade pip
pip3 install -U packaging
pip3 install -U setuptools
pip3 install -U pipenv
pipenv install --dev --system --deploy
python3 setup.py build
- name: build containers
run: |
docker build -t concordia .
docker build -t concordia/importer --file importer/Dockerfile .
docker build -t concordia/celerybeat --file celerybeat/Dockerfile .