fix: made changes to cache dependencies and lower download processes to make deployments faster
This commit is contained in:
@@ -29,6 +29,18 @@ jobs:
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: proxmox-infra/node_modules
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('proxmox-infra/package-lock.json') }}
|
||||
|
||||
- name: Cache pfSense SDK
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: proxmox-infra/sdks
|
||||
key: pfsense-sdk-0.22.0
|
||||
|
||||
- name: Restore Stack Config
|
||||
run: echo "${{ secrets.PROXMOX_INFRA_PULUMI_DEV_YAML }}" | base64 -d > proxmox-infra/Pulumi.dev.yaml
|
||||
|
||||
@@ -40,7 +52,7 @@ jobs:
|
||||
run: curl -fsSL https://get.pulumi.com | sh && echo "$HOME/.pulumi/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Generate Local pfSense SDK
|
||||
run: pulumi package add terraform-provider marshallford/pfsense
|
||||
run: pulumi package add terraform-provider marshallford/pfsense@0.22.0
|
||||
working-directory: proxmox-infra
|
||||
|
||||
- name: Preview
|
||||
@@ -66,6 +78,18 @@ jobs:
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: proxmox-infra/node_modules
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('proxmox-infra/package-lock.json') }}
|
||||
|
||||
- name: Cache pfSense SDK
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: proxmox-infra/sdks
|
||||
key: pfsense-sdk-0.22.0
|
||||
|
||||
- name: Restore Stack Config
|
||||
run: echo "${{ secrets.PROXMOX_INFRA_PULUMI_DEV_YAML }}" | base64 -d > proxmox-infra/Pulumi.dev.yaml
|
||||
|
||||
@@ -77,7 +101,7 @@ jobs:
|
||||
run: curl -fsSL https://get.pulumi.com | sh && echo "$HOME/.pulumi/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Generate Local pfSense SDK
|
||||
run: pulumi package add terraform-provider marshallford/pfsense
|
||||
run: pulumi package add terraform-provider marshallford/pfsense@0.22.0
|
||||
working-directory: proxmox-infra
|
||||
|
||||
- name: Refresh State
|
||||
|
||||
@@ -71,7 +71,7 @@ const ubuntuImagePve = new proxmox.download.File(
|
||||
contentType: "import",
|
||||
fileName: "noble-server-cloudimg-amd64.qcow2",
|
||||
url: ubuntuNobleUrl,
|
||||
overwrite: true,
|
||||
overwrite: false,
|
||||
overwriteUnmanaged: true,
|
||||
},
|
||||
{ provider: pveProvider },
|
||||
@@ -85,7 +85,7 @@ const ubuntuImagePveBckp = new proxmox.download.File(
|
||||
contentType: "import",
|
||||
fileName: "noble-server-cloudimg-amd64.qcow2",
|
||||
url: ubuntuNobleUrl,
|
||||
overwrite: true,
|
||||
overwrite: false,
|
||||
overwriteUnmanaged: true,
|
||||
},
|
||||
{ provider: pveBckpProvider },
|
||||
|
||||
Reference in New Issue
Block a user