Skip to content

Commit

Permalink
migrate to gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Jan 15, 2024
1 parent 8795ed8 commit 00a4640
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 352 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/docker-build-push-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,14 @@ env:

jobs:
deploy-prod:
runs-on: ubuntu-latest
environment: Production
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set K8s context
uses: aliyun/ack-set-context@v1
with:
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
cluster-id: "${{ env.ACK_CLUSTER_ID }}"
- run: |
wget https://github.com/mikefarah/yq/releases/download/v4.25.1/yq_linux_amd64.tar.gz -O - | tar xz && mv yq_linux_amd64 /usr/local/bin/yq
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.10/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/local/bin/kubectl
- uses: sljeff/secrets2env@main
with:
secrets-json: ${{ toJson(secrets) }}
- run: |
sh apply.sh deploy/prod/*
uses: NaturalSelectionLabs/Daedalus/.github/workflows/deploy-v3-tpl.yaml@main
with:
images: safe
tag: ""
cluster: prod
namespace: crossbell
releaseName: safe
revision: main
dir: deploy/prod
secrets:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
6 changes: 4 additions & 2 deletions deploy/prod/cfg-web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ spec:
configMap:
name: nginx-cfg-web
volumeClaimTemplates:
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nginx-shared-cfg
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: "alicloud-disk-essd"
storageClassName: "standard"
resources:
requests:
storage: 20Gi
Expand Down
73 changes: 0 additions & 73 deletions deploy/prod/secrets.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions deploy/prod/txs-scheduler-deployment.yaml

This file was deleted.

128 changes: 0 additions & 128 deletions deploy/prod/txs-web-deployment.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions deploy/prod/txs-worker-contracts-tokens-deployment.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions deploy/prod/txs-worker-indexer-deployment.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions deploy/prod/txs-worker-notifications-webhooks-deployment.yaml

This file was deleted.

0 comments on commit 00a4640

Please sign in to comment.