-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.21 KB
/
ci_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
name: RATE Build test
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- release/*
- feat/*
- master
jobs:
rate-docker-build:
runs-on: ubuntu-latest
steps:
- name: Filter for Dockerfile changes
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
dockerfile:
- 'Dockerfile'
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Install Latest Docker Compose
run: |
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
sudo curl -SL "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o $DOCKER_CONFIG/cli-plugins/docker-compose
sudo chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
- name: Check Docker Compose Version
run: docker compose version
- name: Build RATE with docker compose
if: steps.filter.outputs.dockerfile == 'true'
run: docker compose build rate