forked from 01-edu/public
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) Β· 1.39 KB
/
ga-image-build-master.yml
File metadata and controls
46 lines (38 loc) Β· 1.39 KB
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
name: π³ On Master - Build and Test Docker Image
on:
push:
branches: ["master"]
jobs:
build-image:
name: ποΈ Build Image
runs-on: ubuntu-latest
steps:
- name: π§ Checkout
uses: actions/checkout@v3
- name: π¦ Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: π³ Login to docker.01-edu.org Registry
uses: docker/login-action@v2
with:
registry: docker.01-edu.org
username: ${{ secrets.USER_DOCKER_01EDU_ORG }}
password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }}
- name: ποΈ Build the π» Sh Docker image
if: always()
run: |
docker build sh/tests/ --file sh/tests/Dockerfile --tag ghcr.io/01-edu/test-sh:latest
docker push ghcr.io/01-edu/test-sh:latest
- name: ποΈ Build the π JS Docker image
if: always()
run: |
docker build js/tests/ --file js/tests/Dockerfile --tag ghcr.io/01-edu/test-js:latest
docker push ghcr.io/01-edu/test-js:latest
- name: Build the π§© DOM Docker image
if: always()
run: |
docker build . --file dom/Dockerfile --tag ghcr.io/01-edu/test-dom:latest
docker push ghcr.io/01-edu/test-dom:latest