-
Notifications
You must be signed in to change notification settings - Fork 859
53 lines (51 loc) · 1.69 KB
/
docker-nightly-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Push Docker Nightly
on:
# Run every day at 1:15pm
# schedule:
# - cron: "15 13 * * *"
# workflow_dispatch:
push:
branches: "docker_aarch"
jobs:
nightly:
runs-on: [self-hosted, multi-test]
steps:
- name: Clean up previous run
run: |
echo "Cleaning up previous run"
ls -la ./
sudo rm -rf ./* || true
sudo rm -rf ./.??* || true
ls -la ./
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: x64
- name: Checkout TorchServe
uses: actions/checkout@v3
with:
submodules: recursive
- name: Login to Docker
env:
DOCKER_PASSWORD: ${{secrets.UDAI_TEST}}
run: docker login --username udaij12 --password "$DOCKER_PASSWORD"
- name: Push Docker Nightly
run: |
cd docker
sudo apt-get update
docker buildx rm multibuilder
docker buildx create --name multibuilder --use --driver docker-container --bootstrap
python docker_nightly.py --cleanup
# - name: Push KServe Docker Nightly
# run: |
# cd kubernetes/kserve
# python docker_nightly.py --cleanup
# - name: Open issue on failure
# if: ${{ failure() && github.event_name == 'schedule' }}
# uses: dacbd/create-issue-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# title: Nightly Docker build failed
# body: Commit ${{ github.sha }} daily scheduled [CI run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed, please check why
# assignees: ""