-
Notifications
You must be signed in to change notification settings - Fork 16
51 lines (38 loc) · 1.62 KB
/
ci-local.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Deploy COVID scenario in Docker
on:
workflow_dispatch:
env:
CONTAINER_REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
CONTAINER_REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_ACCESS_TOKEN }}
jobs:
deploy-ccr-covid:
runs-on: [self-hosted, linux, X64]
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- name: Update submodules
run: git submodule update --init --recursive
- name: Login to ACR
uses: docker/login-action@v3
with:
registry: ${{ vars.CONTAINER_REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_ACCESS_TOKEN }}
- name: Add user to docker group
run: sudo usermod -aG docker $USER
- name: Pull container images
run: cd ${{ github.workspace }}/ci && ./pull-containers.sh
- name: Run pre-processing
run: cd ./scenarios/covid/deployment/docker && ./preprocess.sh
- name: Run model saving
run: cd ./scenarios/covid/deployment/docker && ./save-model.sh
- name: Run training
run: cd ./scenarios/covid/deployment/docker && ./train.sh