build: Prepare dependencies / inject configuration
Some checks failed
Container & Helm chart / Linting (push) Successful in 5s
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 1m2s
Container & Helm chart / Kubernetes Bootstrap Appliance (push) Failing after 35m9s

This commit is contained in:
Danny Bessems 2024-06-06 16:34:45 +10:00
parent 663804e1b6
commit 8c1016a231

View File

@ -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: