build: Prepare dependencies / inject configuration
This commit is contained in:
parent
663804e1b6
commit
8c1016a231
@ -75,11 +75,22 @@ jobs:
|
||||
- name: Run `packer init`
|
||||
id: init
|
||||
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`
|
||||
id: validate
|
||||
run: |
|
||||
BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||
BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||
# BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||
# BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||
|
||||
packer validate \
|
||||
-only=vsphere-iso.bootstrap \
|
||||
@ -95,8 +106,8 @@ jobs:
|
||||
./packer
|
||||
- name: Run `packer build`
|
||||
run: |
|
||||
BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||
BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||
# BUILD_COMMIT=$(echo "${{ gitea.sha }}" | cut -c 1-10)
|
||||
# BUILD_SUFFIX=$(openssl rand -hex 3)
|
||||
|
||||
packer build \
|
||||
-only=vsphere-iso.bootstrap \
|
||||
@ -110,8 +121,8 @@ jobs:
|
||||
-var k8s_version=${{ steps.get_k8sversion.outputs.result }} \
|
||||
-var appliance_version=${{ needs.semrel_dryrun.outputs.version }} \
|
||||
./packer
|
||||
env:
|
||||
PACKER_LOG: 1
|
||||
# env:
|
||||
# PACKER_LOG: 1
|
||||
|
||||
|
||||
# semrel:
|
||||
|
Loading…
Reference in New Issue
Block a user