build: Prepare dependencies / inject configuration
This commit is contained in:
parent
663804e1b6
commit
8c1016a231
@ -75,11 +75,22 @@ jobs:
|
|||||||
- name: Run `packer init`
|
- name: Run `packer init`
|
||||||
id: init
|
id: init
|
||||||
run: packer init -upgrade ./packer
|
run: packer init -upgrade ./packer
|
||||||
|
- name: Prepare dependencies and inject configuration
|
||||||
|
run: |
|
||||||
|
export BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||||
|
export BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||||
|
|
||||||
|
sed -i -e "s/<<img-password>>/${{ secrets.SSH_PASSWORD }}/g" \
|
||||||
|
packer/preseed/UbuntuServer22.04/user-data
|
||||||
|
|
||||||
|
ansible-galaxy collection install \
|
||||||
|
-r ansible/requirements.yml \
|
||||||
|
-p ./ansible/collections
|
||||||
- name: Run `packer validate`
|
- name: Run `packer validate`
|
||||||
id: validate
|
id: validate
|
||||||
run: |
|
run: |
|
||||||
BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
# BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||||
BUILD_SUFFIX=$(openssl rand -hex 3)
|
# BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||||
|
|
||||||
packer validate \
|
packer validate \
|
||||||
-only=vsphere-iso.bootstrap \
|
-only=vsphere-iso.bootstrap \
|
||||||
@ -95,8 +106,8 @@ jobs:
|
|||||||
./packer
|
./packer
|
||||||
- name: Run `packer build`
|
- name: Run `packer build`
|
||||||
run: |
|
run: |
|
||||||
BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
# BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||||
BUILD_SUFFIX=$(openssl rand -hex 3)
|
# BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||||
|
|
||||||
packer build \
|
packer build \
|
||||||
-only=vsphere-iso.bootstrap \
|
-only=vsphere-iso.bootstrap \
|
||||||
@ -110,8 +121,8 @@ jobs:
|
|||||||
-var k8s_version=${{ steps.get_k8sversion.outputs.result }} \
|
-var k8s_version=${{ steps.get_k8sversion.outputs.result }} \
|
||||||
-var appliance_version=${{ needs.semrel_dryrun.outputs.version }} \
|
-var appliance_version=${{ needs.semrel_dryrun.outputs.version }} \
|
||||||
./packer
|
./packer
|
||||||
env:
|
# env:
|
||||||
PACKER_LOG: 1
|
# PACKER_LOG: 1
|
||||||
|
|
||||||
|
|
||||||
# semrel:
|
# semrel:
|
||||||
|
Loading…
Reference in New Issue
Block a user