build: Remove redundant packer parameters
This commit is contained in:
parent
691dcee21f
commit
7d431d88c3
@ -78,11 +78,10 @@ jobs:
|
||||
- name: Run `packer validate`
|
||||
id: validate
|
||||
run: |
|
||||
echo "${{ gitea.sha }}" | cut -c 1-10
|
||||
echo "$(openssl rand -hex 3)"
|
||||
echo "${{ gitea.run_number }}-${BUILD_COMMIT}-${BUILD_SUFFIX}"
|
||||
packer validate \
|
||||
-only=vsphere-iso.bootstrap \
|
||||
-var vm_name=${{ gitea.run_number }}-$(echo "${{ gitea.sha }}" | cut -c 1-10) \
|
||||
-var vm_name=${{ gitea.run_number }}-${BUILD_COMMIT}-${$BUILD_SUFFIX} \
|
||||
-var docker_username=${{ secrets.DOCKER_USERNAME }} \
|
||||
-var docker_password=${{ secrets.DOCKER_PASSWORD }} \
|
||||
-var repo_username=${{ secrets.REPO_USERNAME }} \
|
||||
@ -92,6 +91,9 @@ jobs:
|
||||
-var k8s_version=${{ steps.get_k8sversion.outputs.result }} \
|
||||
-var appliance_version=${{ needs.semrel_dryrun.outputs.version }} \
|
||||
./packer
|
||||
env:
|
||||
BUILD_COMMIT: echo "${{ gitea.sha }}" | cut -c 1-10
|
||||
BUILD_SUFFIX: echo "$(openssl rand -hex 3)"
|
||||
- name: Run `packer build`
|
||||
run: |
|
||||
packer build \
|
||||
|
@ -54,8 +54,5 @@ source "vsphere-iso" "ubuntu" {
|
||||
|
||||
remove_cdrom = true
|
||||
|
||||
export {
|
||||
images = false
|
||||
output_directory = "/scratch"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user