-
Notifications
You must be signed in to change notification settings - Fork 6
89 lines (83 loc) · 5.84 KB
/
mbelt3-stage.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: ci
on:
push:
branches: ['mbelt3/stage']
jobs:
docker:
name: Build & update docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: https://eu.gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
context: ./main
tags: eu.gcr.io/substrate-infra/mbelt3_preloader:${{ github.sha }}
- name: Update Image Version
id: imgupd
uses: mikefarah/yq@master
with:
cmd: |
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.stage.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.stage.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.stage.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.stage.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.stage.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.stage.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.stage.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.stage.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.stage.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.stage.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.stage.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.stage.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.stage.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.stage.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.stage.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.stage.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.stage.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.stage.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.stage.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.stage.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.mbelt3.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.mbelt3.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.mbelt3.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.mbelt3.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.mbelt3.monitoring.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/polkadot.mbelt3.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.mbelt3.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.mbelt3.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.mbelt3.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.mbelt3.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.mbelt3.monitoring.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/kusama.mbelt3.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.mbelt3.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.mbelt3.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.mbelt3.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.mbelt3.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.mbelt3.monitoring.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonbeam.mbelt3.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.mbelt3.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.mbelt3.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.mbelt3.staking-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.mbelt3.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.mbelt3.monitoring.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/moonriver.mbelt3.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/vara.mbelt3.balances-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/vara.mbelt3.block-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/vara.mbelt3.gear-smartcontracts-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/vara.mbelt3.identity-processor.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/vara.mbelt3.monitoring.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/vara.mbelt3.preloader.yaml
yq eval '.image.tag = "${{ github.sha }}"' -i .helm/vara.mbelt3.staking-processor.yaml
- name: Commit image changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply image tag change