-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (79 loc) · 2.52 KB
/
statescan.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
name: Statescan
on:
push:
branches: [main]
jobs:
build-backend-image:
name: Build Backend Image
runs-on: ubuntu-latest
steps:
- name: Checkout Statescan
uses: actions/checkout@v4
with:
repository: opensquare-network/statescan-v2
ref: release-1.4.0
fetch-depth: 1
path: statescan-v2
- name: Checkout
uses: actions/checkout@v4
with:
clean: false
fetch-depth: 1
sparse-checkout: |
statescan
path: kreivo-platform
- name: Merge directories
run: rsync --recursive kreivo-platform/statescan/ statescan-v2/
- name: Verify checkout
run: ls -la statescan-v2/backend
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: statescan-v2/backend
push: true
tags: ghcr.io/virto-network/kreivo-statescan-backend:${{ github.sha }},ghcr.io/virto-network/kreivo-statescan-backend:latest
build-site-image:
name: Build Site Image
runs-on: ubuntu-latest
steps:
- name: Checkout Statescan
uses: actions/checkout@v4
with:
repository: opensquare-network/statescan-v2
ref: release-1.4.0
fetch-depth: 1
path: statescan-v2
- name: Checkout
uses: actions/checkout@v4
with:
clean: false
fetch-depth: 1
sparse-checkout: |
statescan
path: kreivo-platform
- name: Merge directories
run: rsync --recursive kreivo-platform/statescan/ statescan-v2/
- name: Verify checkout
run: ls -la statescan-v2/site
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: statescan-v2/site
push: true
tags: ghcr.io/virto-network/kreivo-statescan-site:${{ github.sha }},ghcr.io/virto-network/kreivo-statescan-site:latest