-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (54 loc) · 1.41 KB
/
tutor.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
name: Build and Push docker & tutor installed images
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-images:
strategy:
matrix:
version:
- "14.2.3"
- "14.2.4"
- "14.2.5"
- "15.3.3"
- "15.3.4"
- "15.3.5"
- "15.3.6"
- "15.3.7"
- "15.3.8"
- "15.3.9"
- "16.0.0"
- "16.0.1"
- "16.0.2"
- "16.0.3"
- "16.0.4"
- "16.0.5"
- "16.1.0"
- "16.1.1"
- "16.1.2"
- "16.1.3"
- "16.1.4"
- "16.1.5"
- "16.1.7"
- "16.1.8"
- "17.0.0"
- "17.0.1"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: docker.io
username: abstract2tech
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build image and push to Docker Hub and GitHub Container Registry
run: |
docker build --build-arg tutor_release=${{ matrix.version }} -t abstract2tech/tutor-ci:${{ matrix.version }} .
docker push abstract2tech/tutor-ci:${{ matrix.version }}