-
Notifications
You must be signed in to change notification settings - Fork 25
70 lines (66 loc) · 2 KB
/
test-2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
name: Build And Upload Artifact
env:
# Use terraform assume role for uploading to ecr
AWS_ASSUME_ROLE: ${{ secrets.TERRAFORM_AWS_ASSUME_ROLE }}
ECR_OPERATOR_STAGING_REPO: ${{ vars.ECR_OPERATOR_STAGING_REPO }}
ECR_OPERATOR_RELEASE_IMAGE: ${{ secrets.ECR_OPERATOR_RELEASE_IMAGE }}
on:
push:
jobs:
# MakeBinary:
# name: 'MakeContainerImage'
# runs-on: ubuntu-latest
# permissions:
# id-token: write
# contents: read
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
#
# - name: Set up Go 1.x
# uses: actions/setup-go@v4
# with:
# go-version: ~1.19.6
# cache: false
#
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: ${{ env.AWS_ASSUME_ROLE }}
# aws-region: us-west-2
#
# - name: Login to ECR
# if: steps.cached_binaries.outputs.cache-hit == false
# id: login-ecr
# uses: aws-actions/amazon-ecr-login@v1
#
# - name: Set up Docker Buildx
# if: steps.cached_binaries.outputs.cache-hit == false
# uses: docker/setup-buildx-action@v1
#
# - name: Set up QEMU
# if: steps.cached_binaries.outputs.cache-hit == false
# uses: docker/setup-qemu-action@v1
#
# - name: Build Cloudwatch Agent Operator Image and push to ECR
# uses: docker/build-push-action@v4
# if: steps.cached_binaries.outputs.cache-hit == false
# with:
# file: ./Dockerfile
# context: .
# push: true
# tags: ${{ env.ECR_OPERATOR_STAGING_REPO }}:staging
# platforms: linux/amd64, linux/arm64
e2e-test:
name: "Application Signals E2E Test"
# needs: MakeBinary
uses: ./.github/workflows/application-signals-e2e-test.yml
secrets: inherit
permissions:
id-token: write
contents: read
with:
tag: staging