Skip to content

Commit 5830193

Browse files
Add staging build workflow (#897)
* Add staging build workflow * Potential fix for code scanning alert no. 11: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 62fe533 commit 5830193

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deployment
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
website:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v3
16+
- name: Login to image registry
17+
id: registry-login
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.IMAGEREPO_USERNAME }}
21+
password: ${{ secrets.IMAGEREPO_PASSWORD }}
22+
registry: registry.dsek.se
23+
- name: Build and push website
24+
uses: docker/build-push-action@v6
25+
with:
26+
build-args: |
27+
"PUBLIC_MINIO_ENDPOINT=minio.api.dsek.se"
28+
"PUBLIC_MINIO_PORT=443"
29+
"PUBLIC_MINIO_USE_SSL=true"
30+
"PUBLIC_BUCKETS_DOCUMENTS=documents"
31+
"PUBLIC_BUCKETS_FILES=files"
32+
"PUBLIC_BUCKETS_MEMBERS=members"
33+
"VERSION=${{ github.ref_name }}"
34+
push: true
35+
tags: registry.dsek.se/web-staging/website:${{ github.ref_name }},registry.dsek.se/web-staging/website:latest
36+
37+
poppler:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v3
42+
- name: Login to image registry
43+
id: registry-login
44+
uses: docker/login-action@v3
45+
with:
46+
username: ${{ secrets.IMAGEREPO_USERNAME }}
47+
password: ${{ secrets.IMAGEREPO_PASSWORD }}
48+
registry: registry.dsek.se
49+
- name: Build and push poppler
50+
uses: docker/build-push-action@v6
51+
with:
52+
context: "{{defaultContext}}:poppler-server"
53+
push: true
54+
tags: registry.dsek.se/web-staging/poppler:${{ github.ref_name }},registry.dsek.se/web-staging/poppler:latest

0 commit comments

Comments
 (0)