-
Notifications
You must be signed in to change notification settings - Fork 14
148 lines (145 loc) · 4.57 KB
/
release.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: Release
on:
pull_request:
types:
- closed
branches:
- main
env:
TUTOR_ROOT: ./.ci/
jobs:
release:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'bot/v')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
default_prerelease_bump: false
- name: Create a GitHub release
if: steps.tag_version.outputs.new_tag
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install pip
run: pip install -r requirements/pip.txt
- name: Build package
run: make build-pythonpackage
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
build-aspects:
runs-on: ubuntu-latest
needs: release
steps:
- name: Log in to Docker Hub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.EDUNEXT_DOCKER_USERNAME }}
password: ${{ secrets.EDUNEXT_DOCKER_PASSWORD }}
- name: Checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install aspects
run: pip install .
- name: Save config
run: tutor config save
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Aspects Docker Images
run: |
tutor images build aspects --cache-to-registry
tutor images push aspects
build-superset:
runs-on: ubuntu-latest
needs: release
steps:
- name: Log in to Docker Hub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.EDUNEXT_DOCKER_USERNAME }}
password: ${{ secrets.EDUNEXT_DOCKER_PASSWORD }}
- name: Checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install aspects
run: pip install .
- name: Save config
run: tutor config save
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Superset Docker Image
run: |
tutor images build aspects-superset --cache-to-registry
tutor images push aspects-superset
build-openedx:
runs-on: ubuntu-latest
needs: release
steps:
- name: Log in to Docker Hub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.EDUNEXT_DOCKER_USERNAME }}
password: ${{ secrets.EDUNEXT_DOCKER_PASSWORD }}
- name: Checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install aspects
run: pip install .
- name: Save config
run: tutor config save
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Open edX Docker Images
run: |
tutor images build openedx --cache-to-registry
tutor images push openedx
build-openedx-dev:
runs-on: ubuntu-latest
needs: release
steps:
- name: Log in to Docker Hub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.EDUNEXT_DOCKER_USERNAME }}
password: ${{ secrets.EDUNEXT_DOCKER_PASSWORD }}
- name: Checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install aspects
run: pip install .
- name: Save config
run: tutor config save
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Open edX Docker Images
run: |
tutor images build openedx-dev --cache-to-registry