@@ -81,50 +81,56 @@ jobs:
81
81
- name : Install rpm
82
82
run : sudo apt install rpm
83
83
84
- - name : Configure AWS Credentials
85
- uses : aws-actions/configure-aws-credentials@v2
86
- with :
87
- role-to-assume : ${{ inputs.TerraformAWSAssumeRole }}
88
- aws-region : ${{ inputs.Region }}
84
+ # - name: Configure AWS Credentials
85
+ # uses: aws-actions/configure-aws-credentials@v2
86
+ # with:
87
+ # role-to-assume: ${{ inputs.TerraformAWSAssumeRole }}
88
+ # aws-region: ${{ inputs.Region }}
89
89
90
- - name : Cache binaries
91
- id : cached_binaries
92
- uses : actions/cache@v3
93
- with :
94
- key : " cached_binaries_${{ github.sha }}_${{ inputs.PackageBucketKey }}_${{ inputs.Bucket }}_${{ inputs.BucketKey }}"
95
- path : go.mod
96
-
97
- - name : Cache go
98
- # Only skip for integration builds not release builds.
99
- if : contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
100
- uses : actions/cache@v3
101
- with :
102
- path : |
103
- ~/go/pkg/mod
104
- ~/.cache/go-build
105
- key : v1-go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
90
+ # - name: Cache binaries
91
+ # id: cached_binaries
92
+ # uses: actions/cache@v3
93
+ # with:
94
+ # key: "cached_binaries_${{ github.sha }}_${{ inputs.PackageBucketKey }}_${{ inputs.Bucket }}_${{ inputs.BucketKey }}"
95
+ # path: go.mod
96
+ #
97
+ # - name: Cache go
98
+ # # Only skip for integration builds not release builds.
99
+ # if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
100
+ # uses: actions/cache@v3
101
+ # with:
102
+ # path: |
103
+ # ~/go/pkg/mod
104
+ # ~/.cache/go-build
105
+ # key: v1-go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
106
106
107
107
- name : Import GPG Key
108
- if : contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
108
+ # if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
109
109
uses : crazy-max/ghaction-import-gpg@v5
110
110
with :
111
111
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
112
112
passphrase : ${{ secrets.PASSPHRASE }}
113
113
114
- - name : Build Binaries
115
- if : contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
116
- run : make amazon-cloudwatch-agent-linux amazon-cloudwatch-agent-windows package-rpm package-deb package-win
117
-
118
- - name : Sign Build Files
119
- if : contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
120
- run : for f in $(find build/bin/); do if [ ! -d $f ]; then echo "Signing file $f" && gpg --detach-sign $f ; fi ; done
114
+ - name : Show GPG Keys
115
+ run : gpg --show-keys
121
116
117
+ - name : List GPG Info
118
+ run : gpg --list-packets
122
119
123
- - name : Upload to s3
124
- if : contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
125
- # Copy the RPM to .../amazon_linux/... because BETA customers expect it there.
126
- run : |
127
- echo "BucketKey: ${{ inputs.Bucket }} ${{ inputs.BucketKey }}"
128
- aws s3 cp build/bin s3://${{ inputs.Bucket }}/${{ inputs.BucketKey }} --recursive
129
- aws s3 cp build/bin/linux/amd64/amazon-cloudwatch-agent.rpm s3://${{ inputs.Bucket }}/${{ inputs.BucketKey }}/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm
130
- aws s3 cp build/bin/linux/arm64/amazon-cloudwatch-agent.rpm s3://${{ inputs.Bucket }}/${{ inputs.BucketKey }}/amazon_linux/arm64/latest/amazon-cloudwatch-agent.rpm
120
+ # - name: Build Binaries
121
+ # if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
122
+ # run: make amazon-cloudwatch-agent-linux amazon-cloudwatch-agent-windows package-rpm package-deb package-win
123
+ #
124
+ # - name: Sign Build Files
125
+ # if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
126
+ # run: for f in $(find build/bin/); do if [ ! -d $f ]; then echo "Signing file $f" && gpg --detach-sign $f ; fi ; done
127
+ #
128
+ #
129
+ # - name: Upload to s3
130
+ # if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false
131
+ # # Copy the RPM to .../amazon_linux/... because BETA customers expect it there.
132
+ # run: |
133
+ # echo "BucketKey: ${{ inputs.Bucket }} ${{ inputs.BucketKey }}"
134
+ # aws s3 cp build/bin s3://${{ inputs.Bucket }}/${{ inputs.BucketKey }} --recursive
135
+ # aws s3 cp build/bin/linux/amd64/amazon-cloudwatch-agent.rpm s3://${{ inputs.Bucket }}/${{ inputs.BucketKey }}/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm
136
+ # aws s3 cp build/bin/linux/arm64/amazon-cloudwatch-agent.rpm s3://${{ inputs.Bucket }}/${{ inputs.BucketKey }}/amazon_linux/arm64/latest/amazon-cloudwatch-agent.rpm
0 commit comments