Skip to content

Commit 24d13d5

Browse files
author
elifish4
authored
Merge pull request #47 from codefresh-io/CR-4424
Implementing codefresh terraform provider
2 parents fbe30b4 + b3424b5 commit 24d13d5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Terraform provider for Codefresh
22

3+
34
This provider was initialized by [LightStep](https://lightstep.com/) and will be maintained as the official Terraform provider for Codefresh.
45

56
The provider is still under development, and can be used as a terraform [third-party plugin](https://www.terraform.io/docs/configuration/providers.html#third-party-plugins) only.

codefresh.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '1.0'
22
stages:
33
- clone
44
- test
5+
- pakcages
56
- release
67
steps:
78
main_clone:
@@ -23,9 +24,15 @@ steps:
2324
title: 'Preparing environment variables...'
2425
stage: release
2526
image: codefreshio/ci-helpers
27+
environment:
28+
- GPG_FINGERPRINT=${{GPG_FINGERPRINT}}
29+
- SIGNINGKEY=${{SIGNINGKEY}}
2630
commands:
2731
- source /get-token/get-gh-token.sh
2832
- cf_export GITHUB_TOKEN
33+
- cf_export GPG_FINGERPRINT
34+
- cf_export SIGNINGKEY
35+
- cf_export GPG_PRIVATE
2936
when:
3037
condition:
3138
all:
@@ -35,7 +42,18 @@ steps:
3542
title: Create release in Github
3643
image: goreleaser/goreleaser:v0.133
3744
stage: release
45+
environment:
46+
- GPG_FINGERPRINT=${{GPG_FINGERPRINT}}
47+
- SIGNINGKEY=${{SIGNINGKEY}}
48+
- GPG_PRIVATE=${{GPG_PRIVATE}}
3849
commands:
50+
- apk update
51+
- apk fetch gnupg
52+
- apk add gnupg
53+
- echo ${GPG_PRIVATE} | base64 -d > /tmp/private.key
54+
- gpg --import /tmp/private.key
55+
- git config user.signingkey ${GPG_FINGERPRINT}
56+
- git clean -fdx
3957
- goreleaser release --rm-dist
4058
when:
4159
condition:

0 commit comments

Comments
 (0)