mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-29 02:44:35 +00:00
Merge pull request #48 from 0xFelix/fix-rc
Cleanup GitHub Action oddities
This commit is contained in:
4
.github/workflows/integration.yml
vendored
4
.github/workflows/integration.yml
vendored
@@ -88,6 +88,9 @@ jobs:
|
|||||||
ansible-galaxy collection install \
|
ansible-galaxy collection install \
|
||||||
-r ${{ env.source_directory }}/requirements.yml \
|
-r ${{ env.source_directory }}/requirements.yml \
|
||||||
-p /home/runner/collections --force-with-deps
|
-p /home/runner/collections --force-with-deps
|
||||||
|
# Install ansible.posix to have the ansible.posix.profile_task callback available
|
||||||
|
ansible-galaxy collection install ansible.posix \
|
||||||
|
-p /home/runner/collections --force-with-deps
|
||||||
|
|
||||||
- name: Install kubevirt.core collection
|
- name: Install kubevirt.core collection
|
||||||
id: install
|
id: install
|
||||||
@@ -106,7 +109,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy kubevirt
|
- name: Deploy kubevirt
|
||||||
if: inputs.ansible_test_targets != ''
|
if: inputs.ansible_test_targets != ''
|
||||||
shell: bash
|
|
||||||
run: >-
|
run: >-
|
||||||
${{ env.source_directory }}/hack/e2e-setup.sh \
|
${{ env.source_directory }}/hack/e2e-setup.sh \
|
||||||
-v \
|
-v \
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Check if tag exists
|
- name: Check if tag exists
|
||||||
id: exists
|
id: exists
|
||||||
run: |
|
run: |
|
||||||
EXISTS=$(git tag | grep ${{ steps.version.outputs.VERSION }})
|
EXISTS=$(git tag | grep ${{ steps.version.outputs.VERSION }} || true)
|
||||||
echo "EXISTS=$EXISTS" >> $GITHUB_OUTPUT
|
echo "EXISTS=$EXISTS" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Fail if tag exists
|
- name: Fail if tag exists
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ export ANSIBLE_ROLES_PATH="../"
|
|||||||
USER_CREDENTIALS_DIR=$(pwd)
|
USER_CREDENTIALS_DIR=$(pwd)
|
||||||
export USER_CREDENTIALS_DIR
|
export USER_CREDENTIALS_DIR
|
||||||
|
|
||||||
{
|
|
||||||
export ANSIBLE_CALLBACKS_ENABLED=profile_tasks
|
export ANSIBLE_CALLBACKS_ENABLED=profile_tasks
|
||||||
export ANSIBLE_INVENTORY_ENABLED=kubevirt.core.kubevirt,yaml
|
export ANSIBLE_INVENTORY_ENABLED=kubevirt.core.kubevirt,yaml
|
||||||
export ANSIBLE_PYTHON_INTERPRETER=auto_silent
|
export ANSIBLE_PYTHON_INTERPRETER=auto_silent
|
||||||
@@ -21,7 +20,3 @@ ansible-inventory -i test.label.kubevirt.yml -y --list --output label.yml "$@"
|
|||||||
ansible-inventory -i test.net.kubevirt.yml -y --list --output net.yml "$@"
|
ansible-inventory -i test.net.kubevirt.yml -y --list --output net.yml "$@"
|
||||||
|
|
||||||
ansible-playbook verify.yml "$@"
|
ansible-playbook verify.yml "$@"
|
||||||
|
|
||||||
} || {
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
set -eux
|
set -eux
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
{
|
export ANSIBLE_CALLBACKS_ENABLED=ansible.posix.profile_tasks
|
||||||
export ANSIBLE_CALLBACKS_ENABLED=profile_tasks
|
export ANSIBLE_INVENTORY_ENABLED=kubevirt.core.kubevirt
|
||||||
export ANSIBLE_INVENTORY_ENABLED=kubevirt.core.kubevirt,yaml
|
|
||||||
|
|
||||||
[ -d files ] || mkdir files
|
[ -d files ] || mkdir files
|
||||||
[ -f files/priv_key ] || (ssh-keygen -t ed25519 -C test@test -f files/priv_key ; ssh-keygen -y -f files/priv_key > files/pub_key)
|
[ -f files/priv_key ] || (ssh-keygen -t ed25519 -C test@test -f files/priv_key ; ssh-keygen -y -f files/priv_key > files/pub_key)
|
||||||
@@ -16,6 +15,3 @@ ansible-inventory -i test.kubevirt.yml -y --list "$@"
|
|||||||
ansible-playbook verify.yml -i test.kubevirt.yml --private-key=files/priv_key "$@"
|
ansible-playbook verify.yml -i test.kubevirt.yml --private-key=files/priv_key "$@"
|
||||||
|
|
||||||
rm "$HOME/.ssh/known_hosts"
|
rm "$HOME/.ssh/known_hosts"
|
||||||
} || {
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
- name: Connect to VM
|
- name: Connect to VM
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
hosts: default-testvm3
|
hosts: default-testvm3
|
||||||
remote_user: centos
|
remote_user: cloud-user
|
||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -2,9 +2,6 @@
|
|||||||
set -eux
|
set -eux
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
{
|
export ANSIBLE_CALLBACKS_ENABLED=ansible.posix.profile_tasks
|
||||||
export ANSIBLE_CALLBACKS_ENABLED=profile_tasks
|
|
||||||
ansible-playbook playbook.yml "$@"
|
ansible-playbook playbook.yml "$@"
|
||||||
} || {
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user