-
Notifications
You must be signed in to change notification settings - Fork 34
34 lines (32 loc) · 1.01 KB
/
release.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
# Copyright 2020 ChainSafe Systems
# SPDX-License-Identifier: LGPL-3.0-only
name: Deploy Release
on:
push:
branches:
- main
jobs:
release:
permissions: write-all
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag: ${{ steps.release.outputs.tag_name }}
steps:
- uses: GoogleCloudPlatform/[email protected]
id: release
with:
release-type: go
token: ${{secrets.GITHUB_TOKEN}}
deploy-services:
needs: release
uses: ChainSafe/nodewatch-api/.github/workflows/build-deploy-prod.yml@main
if: ${{ needs.release.outputs.release_created }}
with:
tag: ${{ needs.release.outputs.tag }}
secrets:
aws_region: ${{ secrets.AWS_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
ecr_repo: ${{ secrets.AWS_ECR_REPO }}
ecs_cluster: ${{ secrets.AWS_ECS_CLUSTER }}
ecs_service: ${{ secrets.AWS_ECS_SERVICE }}