Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: convert to dk engine #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
base:
repoName: checkout-ui-tests
repoOrg: vtex
imageRepository: 558830342743.dkr.ecr.us-east-1.amazonaws.com
environment: stable
secretsManager:
enabled: true
secretsName: stable/checkout-ui-tests/checkout-ui-tests
version: 0.19.1
apps:
- name: checkout-tests-cronjob
kind: cronjob
schedule: '* * * * *'
activeDeadlineSeconds: 2400
startingDeadlineSeconds: 6000
envs:
- name: VTEX_ENV
value: stable
- name: HORUS_PROXY_KEY
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: HORUS_PROXY_KEY
optional: false
- name: HORUS_COGNITO_CREDENTIALS
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: HORUS_COGNITO_CREDENTIALS
optional: false
- name: CYPRESS_APP_KEY
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: APP_KEY
optional: false
- name: CYPRESS_APP_TOKEN
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: APP_TOKEN
optional: false
- name: CYPRESS_RECORD_KEY
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: RECORD_KEY
optional: false
dockerfile: ./dockerfiles/stable/Dockerfile
imageRepoName: healthcheck/webtests/checkout
imagePullPolicy: Always
command:
- yarn
- test
volumes:
- name: dshm
mountPath: /dev/shm
serviceAccount:
arn: arn:aws:iam::558830342743:role/s3-healthcheck-io
resources:
requests:
cpu: 2
memory: 2Gi
limits:
cpu: 2
memory: 2Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v2
dependencies:
- name: sre-provisioning
repository: oci://053131491888.dkr.ecr.us-east-1.amazonaws.com
version: 0.2.4
description: Default Kubernetes Helm Template
name: vai-links-management-0.19.1
version: 0.19.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
kubernetes:
base:
repoName: checkout-ui-tests
repoOrg: vtex
imageRepository: 558830342743.dkr.ecr.us-east-1.amazonaws.com
environment: stable
secretsManager:
enabled: true
secretsName: stable/checkout-ui-tests/checkout-ui-tests
version: 0.19.1
apps:
- name: checkout-tests-cronjob
kind: cronjob
schedule: '* * * * *'
activeDeadlineSeconds: 2400
startingDeadlineSeconds: 6000
envs:
- name: VTEX_ENV
value: stable
- name: HORUS_PROXY_KEY
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: HORUS_PROXY_KEY
optional: false
- name: HORUS_COGNITO_CREDENTIALS
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: HORUS_COGNITO_CREDENTIALS
optional: false
- name: CYPRESS_APP_KEY
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: APP_KEY
optional: false
- name: CYPRESS_APP_TOKEN
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: APP_TOKEN
optional: false
- name: CYPRESS_RECORD_KEY
valueFrom:
secretKeyRef:
name: checkout-ui-tests
key: RECORD_KEY
optional: false
dockerfile: ./dockerfiles/stable/Dockerfile
imageRepoName: healthcheck/webtests/checkout
imagePullPolicy: Always
command:
- yarn
- test
volumes:
- name: dshm
mountPath: /dev/shm
serviceAccount:
arn: arn:aws:iam::558830342743:role/s3-healthcheck-io
resources:
requests:
cpu: 2
memory: 2Gi
limits:
cpu: 2
memory: 2Gi
54 changes: 45 additions & 9 deletions .vtex/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,55 @@
- acronym: checkout-ui-tests
description: Deploy checkout-ui-tests with DK CICD
name: checkout-ui-tests
build:
provider: dkcicd
pipelines:
- name: drone-builder-v1
- name: application-build-v1
parameters:
awsAccountId: "558830342743"
awsRegion: us-east-1
cicdForceNoBump: "true"
cicdK8sCluster: EKS-Robots
environment: stable
acronym: checkout-ui-tests
applicationName: checkout-ui-tests
applicationType: k8s
contextPath: ./dockerfiles/stable
dockerfilePath: ./Dockerfile
environmentType: stable
imageRepo: vtex/checkout-ui-tests
imageTag: '{{ ref_name }}'
rollout: "true"
chartName: sre-provisioning
baseBranch: main
when:
- event: push
source: branch
regex: main
runtime:
architecture: amd64
- name: application-build-v1
parameters:
acronym: checkout-ui-tests
applicationName: checkout-ui-tests
applicationType: k8s
dockerfilePath: ./Dockerfile
contextPath: ./dockerfiles/stable
environmentType: stable
imageRepo: vtex/checkout-ui-tests
imageTag: '{{ ref_name }}'
rollout: "true"
chartName: sre-provisioning
baseBranch: main
when:
- event: push
source: branch
regex: main
provider: dkcicd
description: Deploy with drone-builder
name: checkout-ui-tests
runtime:
architecture: amd64
- name: application-deploy-v2
parameters:
acronym: checkout-ui-tests
projectName: sre-apps
baseBranch: main
when:
- event: push
source: branch
regex: main
runtime:
architecture: amd64
65 changes: 0 additions & 65 deletions kubernetes/stable.yml

This file was deleted.

Loading