Skip to content

Commit

Permalink
Merge pull request #2637 from w3f/master
Browse files Browse the repository at this point in the history
staging pipeline
  • Loading branch information
ironoa authored Feb 28, 2024
2 parents f1f3e76 + 9133104 commit 4070094
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 17 deletions.
29 changes: 17 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ jobs:
command: |
/scripts/publish-image.sh web3f/otv-backend
publishCoreImageStaging:
docker:
- image: web3f/ci-commons:v3.2.3
steps:
- checkout
- setup_remote_docker
- run:
command: |
/scripts/publish-image.sh web3f/otv-backend staging
publishGatewayImage:
docker:
- image: web3f/ci-commons:v3.2.3
Expand Down Expand Up @@ -281,6 +291,13 @@ workflows:
only: /v[0-9]+(\.[0-9]+)*/
requires:
- integrationTests
- publishCoreImageStaging:
context: dockerhub-bot
filters:
branches:
only: staging
requires:
- integrationTests
- publishGatewayImage:
context: dockerhub-bot
filters:
Expand Down Expand Up @@ -317,17 +334,5 @@ workflows:
only: /v[0-9]+(\.[0-9]+)*/
requires:
- integrationTests
# - deploy:
# context:
# - digital_ocean_access
# - vault_community
# filters:
# branches:
# ignore: /.*/
# tags:
# only: /v[0-9]+(\.[0-9]+)*/
# requires:
# - publishCoreImage
# - publishChart


5 changes: 3 additions & 2 deletions apps/1kv-backend-staging/templates/kusama-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ spec:
env:
- name: HELM_VALUES
value: |
# image:
# tag: "latest"
image:
imagePullPolicy: Always
tag: staging
environment: {{ .Values.environment }}
dataPath: "/data"
backendPort: 3300
Expand Down
5 changes: 3 additions & 2 deletions apps/1kv-backend-staging/templates/polkadot-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ spec:
env:
- name: HELM_VALUES
value: |
# image:
# tag: "latest"
image:
imagePullPolicy: Always
tag: staging
environment: {{ .Values.environment }}
dataPath: "/data"
backendPort: 3300
Expand Down
2 changes: 1 addition & 1 deletion charts/otv-backend/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
containers:
- name: {{ .Release.Name }}
image: {{ .Values.image.repo }}:{{ .Values.image.tag | default .Chart.AppVersion }}
imagePullPolicy: IfNotPresent
imagePullPolicy: {{ .Values.image.imagePullPolicy }}
ports:
- name: backend
containerPort: {{ .Values.backendPort }}
Expand Down
1 change: 1 addition & 0 deletions charts/otv-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ environment: production
image:
repo: web3f/otv-backend
#tag: latest
imagePullPolicy: IfNotPresent

ingress:
domain: otv.w3f.community
Expand Down

0 comments on commit 4070094

Please sign in to comment.