-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (46 loc) · 1.49 KB
/
fedot.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
name: "Build Baseline Image: Fedot"
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- fedot/**
jobs:
build:
runs-on: [ self-hosted, yandex, sber-automl-21-baselines ]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
BASELINE: "fedot"
REGISTRY_NAME: "registry.datasouls.com"
TAG: "0.0.2"
steps:
- name: clean up workdir
run: |
echo "Cleaning up..."
rm -rf "${{ github.workspace }}" && mkdir -p "${{ github.workspace }}"
- uses: actions/checkout@v2
- name: build image
id: build_image
run: |
cd ./${BASELINE} &&\
docker build -t ${REGISTRY_NAME}/${BASELINE}:${TAG} . -f Dockerfile &&\
docker tag ${REGISTRY_NAME}/${BASELINE}:${TAG} ${REGISTRY_NAME}/${BASELINE}:latest
- name: Login to Datasouls Registry
id: login_to_datasouls_registry
uses: docker/login-action@v1
with:
registry: registry.datasouls.com/${BASELINE}
username: ${{ secrets.REGISTRY_PUSH_USERNAME }}
password: ${{ secrets.REGISTRY_PUSH_PASSWORD }}
- name: Push Images
id: push_images
run: |
docker push ${REGISTRY_NAME}/${BASELINE}:${TAG}
docker push ${REGISTRY_NAME}/${BASELINE}:latest
- name: notify slack
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#notify_builds'
if: always()