-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (52 loc) · 1.74 KB
/
build.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 build & push
on:
push:
branches:
- main
jobs:
build:
env:
REGISTRY: ghcr.io
IMAGENAME: ${{ github.event.repository.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out code
- name: Docker build
id: build
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: ${{ env.IMAGENAME }}
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout production deployment repo
uses: actions/checkout@v2
with:
repository: getalby/alby-deployment
path: infrastructure
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Update production environment
uses: fjogeleit/[email protected]
with:
valueFile: 'alby-mainnet-deployment/values/website.yaml'
propertyPath: 'website.image.tag'
value: ${{ steps.build.outputs.tags }}
repository: getalby/alby-deployment
branch: main
createPR: false
message: 'CD: Update production website tag to ${{ steps.build.outputs.tags }}'
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
workDir: infrastructure
- name: Update simnet environment
uses: fjogeleit/[email protected]
with:
valueFile: 'alby-simnet-deployment/values/website.yaml'
propertyPath: 'website.image.tag'
value: ${{ steps.build.outputs.tags }}
repository: getalby/alby-deployment
branch: main
createPR: false
message: 'CD: Update simnet website tag to ${{ steps.build.outputs.tags }}'
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
workDir: infrastructure