-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.7 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ "main" ]
schedule:
- cron: '15 1 1 * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASS: ${{secrets.DOCKER_PASS}}
run:
docker login -u $DOCKER_USER -p $DOCKER_PASS
- name: Build the web Docker image
run: docker build . --file docker/web/Dockerfile --tag ${{secrets.DOCKER_USER}}/mayan-mindee-web:latest
- name: Push web
run: docker push ${{secrets.DOCKER_USER}}/mayan-mindee-web
- name: push web README to Dockerhub
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASS: ${{secrets.DOCKER_PASS}}
with:
destination_container_repo: ${{secrets.DOCKER_USER}}/mayan-mindee-web
provider: dockerhub
short_description: 'Weserver for Mayan EDMS Mindee add-on'
readme_file: 'README.md'
- name: Build the worker Docker image
run: docker build . --file docker/worker/Dockerfile --tag ${{secrets.DOCKER_USER}}/mayan-mindee-worker:latest
- name: Push worker
run: docker push ${{secrets.DOCKER_USER}}/mayan-mindee-worker
- name: push worker README to Dockerhub
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASS: ${{secrets.DOCKER_PASS}}
with:
destination_container_repo: ${{secrets.DOCKER_USER}}/mayan-mindee-worker
provider: dockerhub
short_description: 'Worker for Mayan EDMS Mindee add-on'
readme_file: 'README.md'