-
Notifications
You must be signed in to change notification settings - Fork 39
73 lines (69 loc) · 2.19 KB
/
Copy pathdeploy-staging.yml
File metadata and controls
73 lines (69 loc) · 2.19 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
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
name: Deployment
permissions:
contents: read
on:
push:
branches:
- main
jobs:
website:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to image registry
id: registry-login
uses: docker/login-action@v3
with:
username: ${{ secrets.IMAGEREPO_USERNAME }}
password: ${{ secrets.IMAGEREPO_PASSWORD }}
registry: registry.dsek.se
- name: Build and push website
uses: docker/build-push-action@v6
with:
build-args: |
"PUBLIC_MINIO_ENDPOINT=files-sandbox.dsek.se"
"PUBLIC_MINIO_PORT=443"
"PUBLIC_MINIO_USE_SSL=true"
"PUBLIC_BUCKETS_DOCUMENTS=documents"
"PUBLIC_BUCKETS_FILES=files"
"PUBLIC_BUCKETS_MEMBERS=members"
"VERSION=${{ github.ref_name }}"
push: true
tags: registry.dsek.se/web-staging/website:latest
poppler:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to image registry
id: registry-login
uses: docker/login-action@v3
with:
username: ${{ secrets.IMAGEREPO_USERNAME }}
password: ${{ secrets.IMAGEREPO_PASSWORD }}
registry: registry.dsek.se
- name: Build and push poppler
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:poppler-server"
push: true
tags: registry.dsek.se/web-staging/poppler:latest
scheduler:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to image registry
id: registry-login
uses: docker/login-action@v3
with:
username: ${{ secrets.IMAGEREPO_USERNAME }}
password: ${{ secrets.IMAGEREPO_PASSWORD }}
registry: registry.dsek.se
- name: Build and push scheduler
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:scheduler-service"
push: true
tags: registry.dsek.se/web-staging/scheduler:latest