Skip to content

Commit

Permalink
Remove unused sshPrivateKey config
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Nov 27, 2024
1 parent a9d1b32 commit d740ab6
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 41 deletions.
6 changes: 0 additions & 6 deletions provider-ci/internal/pkg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,6 @@ type Config struct {
// https://github.com/search?q=org%3Apulumi+path%3A.ci-mgmt.yaml+%22docker%3A%22&type=code
Docker bool `yaml:"docker"`

// SSHPrivateKey sets up SSH with specified private key before running
// tests in CI job. This should be provided from a secret. Used by the
// docker provider only:
// https://github.com/search?q=org%3Apulumi+path%3A.ci-mgmt.yaml+%22sshPrivateKey%3A%22&type=code
SSHPrivateKey string `yaml:"sshPrivateKey"`

// GCP authenticates with GCP before running tests in CI job. Used in gcp
// and docker:
// https://github.com/search?q=org%3Apulumi+path%3A.ci-mgmt.yaml+%22gcp%3A%22&type=code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ jobs:
- name: Login to Google Cloud Registry
run: gcloud --quiet auth configure-docker
#{{- end }}#
#{{- if .Config.SSHPrivateKey }}#
- name: Setup SSH key
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # v0.7.0
with:
ssh-private-key: #{{ .Config.SSHPrivateKey }}#
#{{- end }}#
#{{- if index .Config.SetupScript }}#
- name: Run setup script
run: #{{ index .Config.SetupScript }}#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ jobs:
- name: Login to Google Cloud Registry
run: gcloud --quiet auth configure-docker
#{{- end }}#
#{{- if .Config.SSHPrivateKey }}#
- name: Setup SSH key
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # v0.7.0
with:
ssh-private-key: #{{ .Config.SSHPrivateKey }}#
#{{- end }}#
#{{- if index .Config.SetupScript }}#
- name: Run setup script
run: #{{ index .Config.SetupScript }}#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ jobs:
- name: Login to Google Cloud Registry
run: gcloud --quiet auth configure-docker
#{{- end }}#
#{{- if .Config.SSHPrivateKey }}#
- name: Setup SSH key
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # v0.7.0
with:
ssh-private-key: #{{ .Config.SSHPrivateKey }}#
#{{- end }}#
#{{- if index .Config.SetupScript }}#
- name: Run setup script
run: #{{ index .Config.SetupScript }}#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@ jobs:
- name: Login to Google Cloud Registry
run: gcloud --quiet auth configure-docker
#{{- end }}#
#{{- if .Config.SSHPrivateKey }}#
- name: Setup SSH key
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # v0.7.0
with:
ssh-private-key: #{{ .Config.SSHPrivateKey }}#
#{{- end }}#
#{{- if index .Config.SetupScript }}#
- name: Run setup script
run: #{{ index .Config.SetupScript }}#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,6 @@ jobs:
- name: Login to Google Cloud Registry
run: gcloud --quiet auth configure-docker
#{{- end }}#
#{{- if .Config.SSHPrivateKey }}#
- name: Setup SSH key
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # v0.7.0
with:
ssh-private-key: #{{ .Config.SSHPrivateKey }}#
#{{- end }}#
#{{- if index .Config.SetupScript }}#
- name: Run setup script
run: #{{ index .Config.SetupScript }}#
Expand Down
5 changes: 0 additions & 5 deletions provider-ci/internal/pkg/templates/defaults.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,6 @@ checkUpstreamUpgrade: true
# Used in 9 providers: https://github.com/search?q=org%3Apulumi+path%3A.ci-mgmt.yaml+%22docker%3A%22&type=code
#docker: false

# Setup SSH with specified private key before running tests in CI job.
# This should be provided from a secret
# Used by the docker provider only: https://github.com/search?q=org%3Apulumi+path%3A.ci-mgmt.yaml+%22sshPrivateKey%3A%22&type=code
#sshPrivateKey: ${{ secrets.PRIVATE_SSH_KEY_FOR_DIGITALOCEAN }}

# Authenticate with GCP before running tests in CI job
# Used in gcp and docker: https://github.com/search?q=org%3Apulumi+path%3A.ci-mgmt.yaml+%22gcp%3A%22&type=code
#gcp: false
Expand Down

0 comments on commit d740ab6

Please sign in to comment.