-
Notifications
You must be signed in to change notification settings - Fork 0
118 lines (108 loc) · 5.88 KB
/
docker-push-actions-en.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
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
name: GitHub Actions Docker Push EN
run-name: ${{ github.actor }} is pushing English images to Docker.
on: [push]
jobs:
build_docker_image_address_nobase_en:
runs-on: ubuntu-latest
name: Push image using an English address model (no base)
steps:
- uses: actions/checkout@v3
- name: Move address model
run: rsync -a ./AutomationService/ExampleBodies/ExampleModels/address_nobase_en/* ./AutomationService/AutomationServiceBackend/data/model/
- name: Build the Docker image
run: docker compose -f AutomationService/docker-compose_full-qanary-example-HTWK-stardog.yml build automation_component
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Tag docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest qanary/qanary-component-ner-automl-pretrained-address-nobase-en:latest
- name: Tag fixed version
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest "qanary/qanary-component-ner-automl-pretrained-address-nobase-en:${{ github.ref_name }}"
- name: Push latest docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker push qanary/qanary-component-ner-automl-pretrained-address-nobase-en:latest
- name: Push fixed docker image version
if: startsWith(github.ref, 'refs/tags/')
run: docker push "qanary/qanary-component-ner-automl-pretrained-address-nobase-en:${{ github.ref_name }}"
build_docker_image_address_spacy_en:
runs-on: ubuntu-latest
name: Push image using an English address model (spacy)
steps:
- uses: actions/checkout@v3
- name: Move address model
run: rsync -a ./AutomationService/ExampleBodies/ExampleModels/address_spacy_en/* ./AutomationService/AutomationServiceBackend/data/model/
- name: Build the Docker image
run: docker compose -f AutomationService/docker-compose_full-qanary-example-HTWK-stardog.yml build automation_component
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Tag docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest qanary/qanary-component-ner-automl-pretrained-address-spacy-en:latest
- name: Tag fixed version
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest "qanary/qanary-component-ner-automl-pretrained-address-spacy-en:${{ github.ref_name }}"
- name: Push latest docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker push qanary/qanary-component-ner-automl-pretrained-address-spacy-en:latest
- name: Push fixed docker image version
if: startsWith(github.ref, 'refs/tags/')
run: docker push "qanary/qanary-component-ner-automl-pretrained-address-spacy-en:${{ github.ref_name }}"
build_docker_image_name_nobase_en:
runs-on: ubuntu-latest
name: Push image using an English name model (no base)
steps:
- uses: actions/checkout@v3
- name: Move name model
run: rsync -a ./AutomationService/ExampleBodies/ExampleModels/name_nobase_en/* ./AutomationService/AutomationServiceBackend/data/model/
- name: Build the Docker image
run: docker compose -f AutomationService/docker-compose_full-qanary-example-HTWK-stardog.yml build automation_component
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Tag docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest qanary/qanary-component-ner-automl-pretrained-name-nobase-en:latest
- name: Tag fixed version
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest "qanary/qanary-component-ner-automl-pretrained-name-nobase-en:${{ github.ref_name }}"
- name: Push latest docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker push qanary/qanary-component-ner-automl-pretrained-name-nobase-en:latest
- name: Push fixed docker image version
if: startsWith(github.ref, 'refs/tags/')
run: docker push "qanary/qanary-component-ner-automl-pretrained-name-nobase-en:${{ github.ref_name }}"
build_docker_image_name_spacy_en:
runs-on: ubuntu-latest
name: Push image using an English name model (spacy)
steps:
- uses: actions/checkout@v3
- name: Move name model
run: rsync -a ./AutomationService/ExampleBodies/ExampleModels/name_spacy_en/* ./AutomationService/AutomationServiceBackend/data/model/
- name: Build the Docker image
run: docker compose -f AutomationService/docker-compose_full-qanary-example-HTWK-stardog.yml build automation_component
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Tag docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest qanary/qanary-component-ner-automl-pretrained-name-spacy-en:latest
- name: Tag fixed version
if: startsWith(github.ref, 'refs/tags/')
run: docker tag automation-component-container:latest "qanary/qanary-component-ner-automl-pretrained-name-spacy-en:${{ github.ref_name }}"
- name: Push latest docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker push qanary/qanary-component-ner-automl-pretrained-name-spacy-en:latest
- name: Push fixed docker image version
if: startsWith(github.ref, 'refs/tags/')
run: docker push "qanary/qanary-component-ner-automl-pretrained-name-spacy-en:${{ github.ref_name }}"