-
-
Notifications
You must be signed in to change notification settings - Fork 7
68 lines (63 loc) · 2.12 KB
/
online-model-converter-update-docker.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
67
# ----------------------------------------------------------------------------
# GitHub Actions workflow to update Docker image
# for https://castle-engine.io/convert.php .
#
# See docs:
# - https://castle-engine.io/github_actions
# - https://docs.github.com/en/actions
# ----------------------------------------------------------------------------
name: Update Online Model Converter Docker Image
on:
push:
pull_request:
repository_dispatch:
types: [cge-docker-unstable-changed]
jobs:
build-tools:
name: Build Tools
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
container: kambi/castle-engine-cloud-builds-tools:cge-unstable
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cd online-model-converter/docker-image/
./build_fpc.sh
- name: Archive Tools
uses: actions/upload-artifact@v4
with:
name: online-model-converter-tools
path: |
online-model-converter/docker-image/tmp/castle-model-viewer/castle-model-viewer
online-model-converter/docker-image/tmp/castle-model-viewer/castle-model-converter
if-no-files-found: error
update-docker:
name: Update Docker Image
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
needs: [build-tools]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: online-model-converter-tools
path: online-model-converter/docker-image/docker-context/bin/
merge-multiple: true
- name: Debug online-model-converter/docker-image/
run: ls -FlahR online-model-converter/docker-image/
- name: Docker Image Build
run: |
cd online-model-converter/docker-image/
./build_docker_1_build.sh
- name: Docker Image Test
run: |
cd online-model-converter/docker-image/
./build_docker_2_test.sh
- name: Docker Image Upload
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
cd online-model-converter/docker-image/
./build_docker_3_upload.sh