mirror of
https://github.com/standardnotes/server
synced 2026-02-04 05:01:12 -05:00
Compare commits
27 Commits
@standardn
...
@standardn
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2f2d6c5d8 | ||
|
|
8b64e95845 | ||
|
|
a7e528cdbb | ||
|
|
e23291359f | ||
|
|
2cd557c000 | ||
|
|
a42ff6523f | ||
|
|
62eaf3280d | ||
|
|
f25fa4ba1c | ||
|
|
7d498d4b75 | ||
|
|
ec0fb98b72 | ||
|
|
9689be445c | ||
|
|
adba3ce0b5 | ||
|
|
ee43cecaaf | ||
|
|
56fb33999e | ||
|
|
a421630a2d | ||
|
|
7e95eea337 | ||
|
|
eec76a7ec3 | ||
|
|
4184843e1d | ||
|
|
84bb0d6bec | ||
|
|
54f769c6db | ||
|
|
b7eed64074 | ||
|
|
0134553cbb | ||
|
|
f0b42c77c2 | ||
|
|
40b0f937bd | ||
|
|
48c2c5af65 | ||
|
|
4384ba2f47 | ||
|
|
82495fa724 |
30
.github/workflows/api-gateway.release.yml
vendored
30
.github/workflows/api-gateway.release.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
docker push standardnotes/api-gateway:${{ github.sha }}
|
||||
|
||||
- name: Run E2E test suite
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.1
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.3
|
||||
with:
|
||||
owner: standardnotes
|
||||
repo: e2e
|
||||
@@ -114,40 +114,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition api-gateway-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="api-gateway-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: api-gateway-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/api-gateway:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: api-gateway-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition api-gateway-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="api-gateway-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: api-gateway-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/api-gateway:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
|
||||
58
.github/workflows/auth.release.yml
vendored
58
.github/workflows/auth.release.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
docker push standardnotes/auth:${{ github.sha }}
|
||||
|
||||
- name: Run E2E test suite
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.1
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.3
|
||||
with:
|
||||
owner: standardnotes
|
||||
repo: e2e
|
||||
@@ -117,40 +117,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition auth-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="auth-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: auth-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: auth-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition auth-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="auth-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: auth-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
@@ -170,40 +150,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition auth-worker-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="auth-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: auth-worker-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: auth-worker-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition auth-worker-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="auth-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: auth-worker-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
|
||||
8
.github/workflows/event-store.release.yml
vendored
8
.github/workflows/event-store.release.yml
vendored
@@ -88,20 +88,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition event-store-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="event-store-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: event-store-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/event-store:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
|
||||
58
.github/workflows/files.release.yml
vendored
58
.github/workflows/files.release.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
docker push standardnotes/files:${{ github.sha }}
|
||||
|
||||
- name: Run E2E test suite
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.1
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.3
|
||||
with:
|
||||
owner: standardnotes
|
||||
repo: e2e
|
||||
@@ -117,40 +117,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition files-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="files-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: files-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: files-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition files-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="files-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: files-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
@@ -170,40 +150,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition files-worker-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="files-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: files-worker-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: files-worker-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition files-worker-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="files-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: files-worker-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
|
||||
28
.github/workflows/scheduler.release.yml
vendored
28
.github/workflows/scheduler.release.yml
vendored
@@ -88,40 +88,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition scheduler-worker-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="scheduler-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: scheduler-worker-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/scheduler-worker:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: scheduler-worker-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition scheduler-worker-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="scheduler-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: scheduler-worker-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/scheduler-worker:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
|
||||
58
.github/workflows/syncing-server.release.yml
vendored
58
.github/workflows/syncing-server.release.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
docker push standardnotes/syncing-server-js:${{ github.sha }}
|
||||
|
||||
- name: Run E2E test suite
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.1
|
||||
uses: convictional/trigger-workflow-and-wait@v1.6.3
|
||||
with:
|
||||
owner: standardnotes
|
||||
repo: e2e
|
||||
@@ -117,40 +117,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition syncing-server-js-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: syncing-server-js-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: syncing-server-js-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition syncing-server-js-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: syncing-server-js-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
@@ -170,40 +150,20 @@ jobs:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
- name: DEV - Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition syncing-server-js-worker-dev --query taskDefinition > task-definition.json
|
||||
- name: DEV - Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-dev
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: syncing-server-js-worker-dev
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
|
||||
- name: DEV - Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
|
||||
service: syncing-server-js-worker-dev
|
||||
cluster: dev
|
||||
wait-for-service-stability: true
|
||||
- name: PROD - Download task definition
|
||||
- name: Download task definition
|
||||
run: |
|
||||
aws ecs describe-task-definition --task-definition syncing-server-js-worker-prod --query taskDefinition > task-definition.json
|
||||
- name: PROD - Fill in the new version in the Amazon ECS task definition
|
||||
- name: Fill in the new version in the Amazon ECS task definition
|
||||
run: |
|
||||
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
|
||||
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
|
||||
- name: Fill in the new image ID in the Amazon ECS task definition
|
||||
id: task-def-prod
|
||||
uses: aws-actions/amazon-ecs-render-task-definition@v1
|
||||
with:
|
||||
task-definition: task-definition.json
|
||||
container-name: syncing-server-js-worker-prod
|
||||
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
|
||||
- name: PROD - Deploy Amazon ECS task definition
|
||||
- name: Deploy Amazon ECS task definition
|
||||
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
||||
with:
|
||||
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
|
||||
|
||||
BIN
.yarn/cache/@pnpm-network.ca-file-npm-1.0.1-42bfe40bec-c847d86187.zip
vendored
Normal file
BIN
.yarn/cache/@pnpm-network.ca-file-npm-1.0.1-42bfe40bec-c847d86187.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@pnpm-npm-conf-npm-1.0.4-cc4c19088e-f94afa48ce.zip
vendored
Normal file
BIN
.yarn/cache/@pnpm-npm-conf-npm-1.0.4-cc4c19088e-f94afa48ce.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@sindresorhus-is-npm-4.6.0-7cad05c55e-83839f13da.zip
vendored
Normal file
BIN
.yarn/cache/@sindresorhus-is-npm-4.6.0-7cad05c55e-83839f13da.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@szmarczak-http-timer-npm-5.0.1-52261e5986-fc9cb993e8.zip
vendored
Normal file
BIN
.yarn/cache/@szmarczak-http-timer-npm-5.0.1-52261e5986-fc9cb993e8.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@types-cacheable-request-npm-6.0.2-894b6992d5-667d25808d.zip
vendored
Normal file
BIN
.yarn/cache/@types-cacheable-request-npm-6.0.2-894b6992d5-667d25808d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@types-http-cache-semantics-npm-4.0.1-90863c7a3e-1048aacf62.zip
vendored
Normal file
BIN
.yarn/cache/@types-http-cache-semantics-npm-4.0.1-90863c7a3e-1048aacf62.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@types-json-buffer-npm-3.0.0-9f2fe89eaa-6b0a371dd6.zip
vendored
Normal file
BIN
.yarn/cache/@types-json-buffer-npm-3.0.0-9f2fe89eaa-6b0a371dd6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ansi-regex-npm-6.0.1-8d663a607d-1ff8b7667c.zip
vendored
Normal file
BIN
.yarn/cache/ansi-regex-npm-6.0.1-8d663a607d-1ff8b7667c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ansi-styles-npm-6.1.0-4f6a594d04-7a7f8528c0.zip
vendored
Normal file
BIN
.yarn/cache/ansi-styles-npm-6.1.0-4f6a594d04-7a7f8528c0.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/boxen-npm-7.0.0-86e7bcbd8c-b917cf7a16.zip
vendored
Normal file
BIN
.yarn/cache/boxen-npm-7.0.0-86e7bcbd8c-b917cf7a16.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/cacheable-lookup-npm-6.0.4-fe6f8fb6da-7aea70f5ea.zip
vendored
Normal file
BIN
.yarn/cache/cacheable-lookup-npm-6.0.4-fe6f8fb6da-7aea70f5ea.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/camelcase-npm-7.0.0-5041fb20b5-162d59607b.zip
vendored
Normal file
BIN
.yarn/cache/camelcase-npm-7.0.0-5041fb20b5-162d59607b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/chalk-npm-5.0.1-6afcb94227-7b45300372.zip
vendored
Normal file
BIN
.yarn/cache/chalk-npm-5.0.1-6afcb94227-7b45300372.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/cint-npm-8.2.1-958b3dddeb-5f32feed16.zip
vendored
BIN
.yarn/cache/cint-npm-8.2.1-958b3dddeb-5f32feed16.zip
vendored
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/cli-boxes-npm-3.0.0-e5de3a0d5e-637d84419d.zip
vendored
Normal file
BIN
.yarn/cache/cli-boxes-npm-3.0.0-e5de3a0d5e-637d84419d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/compress-brotli-npm-1.3.8-9b6ceac281-de7589d692.zip
vendored
Normal file
BIN
.yarn/cache/compress-brotli-npm-1.3.8-9b6ceac281-de7589d692.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/configstore-npm-6.0.0-410b4e0bf5-81995351c1.zip
vendored
Normal file
BIN
.yarn/cache/configstore-npm-6.0.0-410b4e0bf5-81995351c1.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/crypto-random-string-npm-4.0.0-b9f0f76168-91f148f27b.zip
vendored
Normal file
BIN
.yarn/cache/crypto-random-string-npm-4.0.0-b9f0f76168-91f148f27b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/decompress-response-npm-6.0.0-359de2878c-d377cf47e0.zip
vendored
Normal file
BIN
.yarn/cache/decompress-response-npm-6.0.0-359de2878c-d377cf47e0.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/defer-to-connect-npm-2.0.1-9005cc8c60-8a9b50d2f2.zip
vendored
Normal file
BIN
.yarn/cache/defer-to-connect-npm-2.0.1-9005cc8c60-8a9b50d2f2.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/dot-prop-npm-6.0.1-de66211710-0f47600a4b.zip
vendored
Normal file
BIN
.yarn/cache/dot-prop-npm-6.0.1-de66211710-0f47600a4b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/eastasianwidth-npm-0.2.0-c37eb16bd1-7d00d7cd8e.zip
vendored
Normal file
BIN
.yarn/cache/eastasianwidth-npm-0.2.0-c37eb16bd1-7d00d7cd8e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/emoji-regex-npm-9.2.2-e6fac8d058-8487182da7.zip
vendored
Normal file
BIN
.yarn/cache/emoji-regex-npm-9.2.2-e6fac8d058-8487182da7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/escape-goat-npm-4.0.0-31eb65b6cc-7034e0025e.zip
vendored
Normal file
BIN
.yarn/cache/escape-goat-npm-4.0.0-31eb65b6cc-7034e0025e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/form-data-encoder-npm-1.7.1-7c80545199-a2a360d558.zip
vendored
Normal file
BIN
.yarn/cache/form-data-encoder-npm-1.7.1-7c80545199-a2a360d558.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/got-npm-12.1.0-5d0f237e8e-1cc9af6ca5.zip
vendored
Normal file
BIN
.yarn/cache/got-npm-12.1.0-5d0f237e8e-1cc9af6ca5.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/got-npm-9.6.0-80edc15fd0-941807bd97.zip
vendored
BIN
.yarn/cache/got-npm-9.6.0-80edc15fd0-941807bd97.zip
vendored
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/has-yarn-npm-3.0.0-951e36133f-b9e14e78e0.zip
vendored
Normal file
BIN
.yarn/cache/has-yarn-npm-3.0.0-951e36133f-b9e14e78e0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/http2-wrapper-npm-2.1.11-a7577d6368-5da05aa2c7.zip
vendored
Normal file
BIN
.yarn/cache/http2-wrapper-npm-2.1.11-a7577d6368-5da05aa2c7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/import-lazy-npm-4.0.0-3215653869-22f5e51702.zip
vendored
Normal file
BIN
.yarn/cache/import-lazy-npm-4.0.0-3215653869-22f5e51702.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ini-npm-1.3.7-188ee858c0-f8f3801e8e.zip
vendored
BIN
.yarn/cache/ini-npm-1.3.7-188ee858c0-f8f3801e8e.zip
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/is-npm-npm-6.0.0-d8d9039032-fafe1ddc77.zip
vendored
Normal file
BIN
.yarn/cache/is-npm-npm-6.0.0-d8d9039032-fafe1ddc77.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/is-yarn-global-npm-0.4.0-8b8bf14f52-a5fcf09c3a.zip
vendored
Normal file
BIN
.yarn/cache/is-yarn-global-npm-0.4.0-8b8bf14f52-a5fcf09c3a.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/json-buffer-npm-3.0.1-f8f6d20603-9026b03edc.zip
vendored
Normal file
BIN
.yarn/cache/json-buffer-npm-3.0.1-f8f6d20603-9026b03edc.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/keyv-npm-3.1.0-81c9ff4454-bb7e8f3acf.zip
vendored
BIN
.yarn/cache/keyv-npm-3.1.0-81c9ff4454-bb7e8f3acf.zip
vendored
Binary file not shown.
BIN
.yarn/cache/keyv-npm-4.3.2-036dc9c0ad-237952f5fa.zip
vendored
Normal file
BIN
.yarn/cache/keyv-npm-4.3.2-036dc9c0ad-237952f5fa.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/latest-version-npm-7.0.0-2849fd29d3-1f0deba00d.zip
vendored
Normal file
BIN
.yarn/cache/latest-version-npm-7.0.0-2849fd29d3-1f0deba00d.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/lowercase-keys-npm-3.0.0-f8c4730215-67a3f81409.zip
vendored
Normal file
BIN
.yarn/cache/lowercase-keys-npm-3.0.0-f8c4730215-67a3f81409.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/mimic-response-npm-3.1.0-a4a24b4e96-25739fee32.zip
vendored
Normal file
BIN
.yarn/cache/mimic-response-npm-3.1.0-a4a24b4e96-25739fee32.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/npm-check-updates-npm-15.3.3-146d2ff74b-3ee33fe369.zip
vendored
Normal file
BIN
.yarn/cache/npm-check-updates-npm-15.3.3-146d2ff74b-3ee33fe369.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/p-cancelable-npm-3.0.0-e6c8101c97-2b5ae34218.zip
vendored
Normal file
BIN
.yarn/cache/p-cancelable-npm-3.0.0-e6c8101c97-2b5ae34218.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/package-json-npm-8.1.0-79fa6df898-28c16ef029.zip
vendored
Normal file
BIN
.yarn/cache/package-json-npm-8.1.0-79fa6df898-28c16ef029.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/pupa-npm-2.1.1-fb256825ba-49529e5037.zip
vendored
BIN
.yarn/cache/pupa-npm-2.1.1-fb256825ba-49529e5037.zip
vendored
Binary file not shown.
BIN
.yarn/cache/pupa-npm-3.1.0-8d0c9815fb-0e4f4ab6bb.zip
vendored
Normal file
BIN
.yarn/cache/pupa-npm-3.1.0-8d0c9815fb-0e4f4ab6bb.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/quick-lru-npm-5.1.1-e38e0edce3-a516faa255.zip
vendored
Normal file
BIN
.yarn/cache/quick-lru-npm-5.1.1-e38e0edce3-a516faa255.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/registry-auth-token-npm-5.0.1-e4154b97dd-abd3a3b14a.zip
vendored
Normal file
BIN
.yarn/cache/registry-auth-token-npm-5.0.1-e4154b97dd-abd3a3b14a.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/registry-url-npm-6.0.1-44fabb0bc1-33712aa1b4.zip
vendored
Normal file
BIN
.yarn/cache/registry-url-npm-6.0.1-44fabb0bc1-33712aa1b4.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/resolve-alpn-npm-1.2.1-af77edd28b-f558071fcb.zip
vendored
Normal file
BIN
.yarn/cache/resolve-alpn-npm-1.2.1-af77edd28b-f558071fcb.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/responselike-npm-2.0.0-7813864e97-6a4d32c37d.zip
vendored
Normal file
BIN
.yarn/cache/responselike-npm-2.0.0-7813864e97-6a4d32c37d.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/semver-diff-npm-4.0.0-33162befa2-4a958d6f76.zip
vendored
Normal file
BIN
.yarn/cache/semver-diff-npm-4.0.0-33162befa2-4a958d6f76.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/string-width-npm-5.1.2-bf60531341-7369deaa29.zip
vendored
Normal file
BIN
.yarn/cache/string-width-npm-5.1.2-bf60531341-7369deaa29.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/strip-ansi-npm-7.0.1-668c121204-257f78fa43.zip
vendored
Normal file
BIN
.yarn/cache/strip-ansi-npm-7.0.1-668c121204-257f78fa43.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/type-fest-npm-1.4.0-7dd848962a-b011c33886.zip
vendored
Normal file
BIN
.yarn/cache/type-fest-npm-1.4.0-7dd848962a-b011c33886.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/type-fest-npm-2.16.0-8d42df3332-897fc5f683.zip
vendored
Normal file
BIN
.yarn/cache/type-fest-npm-2.16.0-8d42df3332-897fc5f683.zip
vendored
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user