-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.29 KB
/
continous-deployment.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
# FILE IS AUTOMATICALLY MANAGED BY github.com/vegaprotocol/terraform//github
name: "Continous Deployment Workflow"
"on":
push:
tags:
- v*
jobs:
integration:
uses: ./.github/workflows/continous-integration.yml
delivery:
needs: integration
uses: ./.github/workflows/continous-delivery.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
update-manifest-repo:
needs: delivery
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.VEGA_CI_SSH_KEY }}
- run: |
version=$(git describe --tags --abbrev=0)
git config --global user.name 'vega-ci-bot'
git config --global user.email '[email protected]'
git clone [email protected]:vegaprotocol/k8s.git
echo -n "$version" > k8s/charts/apps/priceproxy/dev/VERSION
(
cd k8s
git add -A
git commit -m "Automated version update for priceproxy: $version, from repository: $GITHUB_REPOSITORY"
git pull --rebase
git push
)