-
-
Notifications
You must be signed in to change notification settings - Fork 65
41 lines (39 loc) · 1.27 KB
/
local_deployment_pipeline.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: Run first-time set-up for MacOS and Linux
on:
push:
branches:
- 'main'
- 'develop'
pull_request:
branches:
- 'main'
- 'develop'
paths:
- 'api/**'
- 'client/**'
- '.github/workflows/*'
- './docker-compose.yml'
jobs:
ubuntu-set-up:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set-up Docker
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- name: Create environment file
run: |
cp .env.example.dev .env.dev
- name: Initialize environment
run: |
make build