diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 35d6bbc..c427fb8 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -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/<>/${{ 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: