-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.53 KB
/
ktisis.yaml
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
name: Ktisis
on:
push:
branches:
- main
paths:
- "**.cs"
- "**.nix"
- npins/*
pull_request:
branches:
- main
paths:
- "**.cs"
- "**.nix"
- npins/*
workflow_dispatch:
jobs:
Docker:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v15
with:
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
diagnostic-endpoint: ""
- uses: cachix/cachix-action@v15
with:
name: drakon64-ktisis
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix-build docker.nix
- run: docker load < result
- run: docker tag ktisis:latest ${{ secrets.GOOGLE_ARTIFACT_REGISTRY }}/ktisis:latest
- uses: google-github-actions/auth@v2
with:
project_id: ${{ secrets.GOOGLE_PROJECT_ID }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
- uses: google-github-actions/setup-gcloud@v2
- run: gcloud auth configure-docker ${{ vars.GOOGLE_REGION }}-docker.pkg.dev
- run: docker push ${{ secrets.GOOGLE_ARTIFACT_REGISTRY }}/ktisis:latest
- uses: google-github-actions/deploy-cloudrun@v2
with:
service: ktisis
image: ${{ secrets.GOOGLE_ARTIFACT_REGISTRY }}/ktisis:latest
region: ${{ vars.GOOGLE_REGION }}