-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (57 loc) · 1.7 KB
/
scipy-migrate.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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: migrate scipy
env:
DOCKER_CLIENT_TIMEOUT: "300"
COMPOSE_HTTP_TIMEOUT: "300"
REGISTRY: ghcr.io
on:
push:
paths:
- "images/**"
- "model/**"
- "scripts/**"
- "dodo.py"
- ".github/workflows/main.yml"
pull_request:
branches: [ main ]
paths:
- "images/**"
- "model/**"
- "scripts/**"
- "dodo.py"
- ".github/workflows/main.yml"
workflow_dispatch:
jobs:
docker-pipeline:
runs-on: ubuntu-latest
if: >
!contains(github.event.head_commit.message , 'skip ci') &&
!contains(github.event.pull_request.title, 'skip ci')
steps:
- name: Checkout after Free Space
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check Free Space 0
run: |
echo "Free space:"
df -h
- name: Docker/ENV cleanup Cleanup
run: |
docker image prune -a -f
docker container prune -f
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push
run: |
docker pull ucsdets/scipy-ml-notebook:2021.3-stable
docker tag docker.io/ucsdets/scipy-ml-notebook:2021.3-stable ghcr.io/ucsd-ets/scipy-ml-notebook:2021.3-stable
docker push ghcr.io/ucsd-ets/scipy-ml-notebook:2021.3-stable