@vaharoni/devops 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/target-templates/infra-variants/digitalocean/.github/workflows/k8s-build.yaml +9 -9
- package/src/target-templates/infra-variants/gcloud/.github/workflows/k8s-build.yaml +12 -12
- package/src/target-templates/infra-variants/hetzner/.github/workflows/k8s-build.yaml +8 -8
- package/src/target-templates/lang-variants-common/typescript/.github/actions/connect-to-infra@v1/action.yaml +0 -67
package/package.json
CHANGED
@@ -29,11 +29,11 @@ jobs:
|
|
29
29
|
- name: Setup prerequesites
|
30
30
|
uses: ./.github/actions/setup-prereq@v1
|
31
31
|
|
32
|
-
- name: Connect to
|
33
|
-
uses: ./.github/actions/connect-to-
|
32
|
+
- name: Connect to Digital Ocean
|
33
|
+
uses: ./.github/actions/connect-to-digital-ocean@v1
|
34
34
|
with:
|
35
|
-
|
36
|
-
|
35
|
+
access_token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
|
36
|
+
cluster_name: ${{ secrets.DIGITALOCEAN_CLUSTER_NAME }}
|
37
37
|
|
38
38
|
- name: Build image
|
39
39
|
uses: ./.github/actions/build-image@v1
|
@@ -54,12 +54,12 @@ jobs:
|
|
54
54
|
- name: Setup prerequesites
|
55
55
|
uses: ./.github/actions/setup-prereq@v1
|
56
56
|
|
57
|
-
- name: Connect to
|
58
|
-
uses: ./.github/actions/connect-to-
|
57
|
+
- name: Connect to Digital Ocean
|
58
|
+
uses: ./.github/actions/connect-to-digital-ocean@v1
|
59
59
|
with:
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
access_token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
|
61
|
+
cluster_name: ${{ secrets.DIGITALOCEAN_CLUSTER_NAME }}
|
62
|
+
|
63
63
|
- name: Run DB Migrate
|
64
64
|
uses: ./.github/actions/db-migrate@v1
|
65
65
|
|
@@ -29,13 +29,13 @@ jobs:
|
|
29
29
|
- name: Setup prerequesites
|
30
30
|
uses: ./.github/actions/setup-prereq@v1
|
31
31
|
|
32
|
-
- name: Connect to
|
33
|
-
uses: ./.github/actions/connect-to-
|
32
|
+
- name: Connect to Google Cloud GKE
|
33
|
+
uses: ./.github/actions/connect-to-gke@v1
|
34
34
|
with:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
project_id: ${{ secrets.GCLOUD_PROJECT_ID }}
|
36
|
+
zone: ${{ secrets.GCLOUD_ZONE }}
|
37
|
+
cluster_name: ${{ secrets.GCLOUD_CLUSTER_NAME }}
|
38
|
+
service_account_key: ${{ secrets.GCLOUD_SA_KEY }}
|
39
39
|
|
40
40
|
- name: Build image
|
41
41
|
uses: ./.github/actions/build-image@v1
|
@@ -56,13 +56,13 @@ jobs:
|
|
56
56
|
- name: Setup prerequesites
|
57
57
|
uses: ./.github/actions/setup-prereq@v1
|
58
58
|
|
59
|
-
- name: Connect to
|
60
|
-
uses: ./.github/actions/connect-to-
|
59
|
+
- name: Connect to Google Cloud GKE
|
60
|
+
uses: ./.github/actions/connect-to-gke@v1
|
61
61
|
with:
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
62
|
+
project_id: ${{ secrets.GCLOUD_PROJECT_ID }}
|
63
|
+
zone: ${{ secrets.GCLOUD_ZONE }}
|
64
|
+
cluster_name: ${{ secrets.GCLOUD_CLUSTER_NAME }}
|
65
|
+
service_account_key: ${{ secrets.GCLOUD_SA_KEY }}
|
66
66
|
|
67
67
|
- name: Run DB Migrate
|
68
68
|
uses: ./.github/actions/db-migrate@v1
|
@@ -29,12 +29,12 @@ jobs:
|
|
29
29
|
- name: Setup prerequesites
|
30
30
|
uses: ./.github/actions/setup-prereq@v1
|
31
31
|
|
32
|
-
- name: Connect to
|
33
|
-
uses: ./.github/actions/connect-to-
|
32
|
+
- name: Connect to Hetzner
|
33
|
+
uses: ./.github/actions/connect-to-hetzner@v1
|
34
34
|
with:
|
35
|
-
|
35
|
+
kubeconfig: ${{ secrets.HCLOUD_KUBECONFIG }}
|
36
36
|
harbor_user: ${{ secrets.HARBOR_USER }}
|
37
|
-
harbor_password: ${{ secrets.HARBOR_PASSWORD }}
|
37
|
+
harbor_password: ${{ secrets.HARBOR_PASSWORD }}
|
38
38
|
|
39
39
|
- name: Build image
|
40
40
|
uses: ./.github/actions/build-image@v1
|
@@ -55,12 +55,12 @@ jobs:
|
|
55
55
|
- name: Setup prerequesites
|
56
56
|
uses: ./.github/actions/setup-prereq@v1
|
57
57
|
|
58
|
-
- name: Connect to
|
59
|
-
uses: ./.github/actions/connect-to-
|
58
|
+
- name: Connect to Hetzner
|
59
|
+
uses: ./.github/actions/connect-to-hetzner@v1
|
60
60
|
with:
|
61
|
-
|
61
|
+
kubeconfig: ${{ secrets.HCLOUD_KUBECONFIG }}
|
62
62
|
harbor_user: ${{ secrets.HARBOR_USER }}
|
63
|
-
harbor_password: ${{ secrets.HARBOR_PASSWORD }}
|
63
|
+
harbor_password: ${{ secrets.HARBOR_PASSWORD }}
|
64
64
|
|
65
65
|
- name: Run DB Migrate
|
66
66
|
uses: ./.github/actions/db-migrate@v1
|
@@ -1,67 +0,0 @@
|
|
1
|
-
name: "Connect to the infrastructure"
|
2
|
-
description: "Convenience action to connect either to Digital Ocean or Hetzner based on the inputs provided"
|
3
|
-
inputs:
|
4
|
-
do_access_token:
|
5
|
-
description: "DigitalOcean access token"
|
6
|
-
required: false
|
7
|
-
do_cluster_name:
|
8
|
-
description: "DigitalOcean cluster name"
|
9
|
-
required: false
|
10
|
-
hetzner_kubeconfig:
|
11
|
-
description: "The Hetzner kubeconfig file"
|
12
|
-
required: false
|
13
|
-
harbor_user:
|
14
|
-
description: "The user name for the harbor registry"
|
15
|
-
required: false
|
16
|
-
harbor_password:
|
17
|
-
description: "The password for the harbor registry"
|
18
|
-
required: false
|
19
|
-
gcloud_project_id:
|
20
|
-
description: "Google Cloud project ID"
|
21
|
-
required: false
|
22
|
-
gcloud_zone:
|
23
|
-
description: "Google Cloud GKE zone (e.g., us-central1)"
|
24
|
-
required: false
|
25
|
-
gcloud_cluster_name:
|
26
|
-
description: "Google Cloud GKE cluster name"
|
27
|
-
required: false
|
28
|
-
gcloud_service_account_key:
|
29
|
-
description: "Google Cloud service account key in JSON format"
|
30
|
-
required: false
|
31
|
-
outputs:
|
32
|
-
infra:
|
33
|
-
description: "Which infrastructure is being used"
|
34
|
-
value: steps.determine_infrastructure.outputs.infra
|
35
|
-
runs:
|
36
|
-
using: "composite"
|
37
|
-
steps:
|
38
|
-
- name: Determine the infrastructure
|
39
|
-
id: determine_infrastructure
|
40
|
-
shell: bash
|
41
|
-
run: |
|
42
|
-
INFRA=$(devops constant infra)
|
43
|
-
echo "infra=$INFRA" >> $GITHUB_OUTPUT
|
44
|
-
|
45
|
-
- name: Connect to Digital Ocean
|
46
|
-
if: steps.determine_infrastructure.outputs.infra == 'digitalocean'
|
47
|
-
uses: ./.github/actions/connect-to-digital-ocean@v1
|
48
|
-
with:
|
49
|
-
access_token: ${{ inputs.do_access_token }}
|
50
|
-
cluster_name: ${{ inputs.do_cluster_name }}
|
51
|
-
|
52
|
-
- name: Connect to Hetzner
|
53
|
-
if: steps.determine_infrastructure.outputs.infra == 'hetzner'
|
54
|
-
uses: ./.github/actions/connect-to-hetzner@v1
|
55
|
-
with:
|
56
|
-
kubeconfig: ${{ inputs.hetzner_kubeconfig }}
|
57
|
-
harbor_user: ${{ inputs.harbor_user }}
|
58
|
-
harbor_password: ${{ inputs.harbor_password }}
|
59
|
-
|
60
|
-
- name: Connect to Google Cloud GKE
|
61
|
-
if: steps.determine_infrastructure.outputs.infra == 'gcloud'
|
62
|
-
uses: ./.github/actions/connect-to-gke@v1
|
63
|
-
with:
|
64
|
-
project_id: ${{ inputs.gcloud_project_id }}
|
65
|
-
zone: ${{ inputs.gcloud_zone }}
|
66
|
-
cluster_name: ${{ inputs.gcloud_cluster_name }}
|
67
|
-
service_account_key: ${{ inputs.gcloud_service_account_key }}
|