Skip to content

Refactor dockerization & deployment #960

Refactor dockerization & deployment

Refactor dockerization & deployment #960

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
cp .env.example.dev .env.dev
- name: Initialize environment
run: |
make build