-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (43 loc) · 1.26 KB
/
deploy-staging.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
name: Staging deployment
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
deploy-rpc:
name: Deploy monoweb/rpc
runs-on: ubuntu-24.04
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-north-1
role-to-assume: arn:aws:iam::891459268445:role/MonowebStagingRPCCIRole
- uses: aws-actions/amazon-ecr-login@v2
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: .
file: apps/rpc/Dockerfile
tags: 891459268445.dkr.ecr.eu-north-1.amazonaws.com/monoweb/staging/rpc:latest
push: true
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.TERRAFORM_WORKFLOW_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'dotkom',
repo: 'terraform-monorepo',
workflow_id: 'apply.yml',
ref: 'main',
inputs: {
environment: 'staging',
project: 'monoweb-rpc',
targets: 'module.rpc_evergreen_service',
},
});