mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-13 12:33:14 +02:00
ci: remove ssh host keys only once
This commit is contained in:
parent
a97365aeda
commit
69fe9bd32d
3 changed files with 5 additions and 12 deletions
4
.github/workflows/amd64-image-build.yml
vendored
4
.github/workflows/amd64-image-build.yml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
|||
- '*.md'
|
||||
- '.gitignore'
|
||||
- 'images'
|
||||
- 'ci/arm64-rpi'
|
||||
- 'ci/arm64-rpi/**'
|
||||
- 'scripts/jam-remote'
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
|
@ -15,7 +15,7 @@ on:
|
|||
- '*.md'
|
||||
- '.gitignore'
|
||||
- 'images'
|
||||
- 'ci/arm64-rpi'
|
||||
- 'ci/arm64-rpi/**'
|
||||
- 'scripts/jam-remote'
|
||||
workflow_dispatch:
|
||||
|
||||
|
|
|
|||
4
.github/workflows/arm64-rpi-image-build.yml
vendored
4
.github/workflows/arm64-rpi-image-build.yml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
|||
- '*.md'
|
||||
- '.gitignore'
|
||||
- 'images'
|
||||
- 'ci/amd64'
|
||||
- 'ci/amd64/**'
|
||||
- 'scripts/jam-remote'
|
||||
- 'Makefile'
|
||||
pull_request:
|
||||
|
|
@ -16,7 +16,7 @@ on:
|
|||
- '*.md'
|
||||
- '.gitignore'
|
||||
- 'images'
|
||||
- 'ci/amd64'
|
||||
- 'ci/amd64/**'
|
||||
- 'scripts/jam-remote'
|
||||
- 'Makefile'
|
||||
workflow_dispatch:
|
||||
|
|
|
|||
|
|
@ -49,18 +49,11 @@ build {
|
|||
}
|
||||
|
||||
provisioner "shell" {
|
||||
environment_vars = [
|
||||
environment_vars = [
|
||||
"github_user=${var.github_user}",
|
||||
"branch=${var.branch}"
|
||||
]
|
||||
script = "./joininbox.sh"
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"echo '# Deleting the SSH pub keys (will be recreate on the first boot) ...'",
|
||||
"rm /etc/ssh/ssh_host_*",
|
||||
"echo 'OK'",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue