Skip to content

Commit

Permalink
Merge pull request #580 from ccamacho/main
Browse files Browse the repository at this point in the history
ci: fix release scripts
  • Loading branch information
ccamacho authored Dec 21, 2021
2 parents f9676de + 0c68404 commit 187130b
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/distro_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo apt update -y
sudo apt install jq -y
sudo apt-get remove ansible -y
sudo python3 -m pip uninstall ansible
sudo python3 -m pip uninstall ansible ansible-base ansible-core -y
sudo python3 -m pip install ansible==3.4.0
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo apt-get update -y
sudo apt-get install graphviz plantuml openjdk-11-jdk -y
sudo apt-get remove ansible -y
sudo python3 -m pip uninstall ansible ansible-base ansible-core
sudo python3 -m pip uninstall ansible ansible-base ansible-core -y
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade virtualenv
sudo python3 -m pip install --upgrade setuptools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
sudo apt-get update -y
sudo apt-get install jq libyaml-dev git build-essential findutils -y
sudo apt-get remove ansible -y
sudo python3 -m pip uninstall ansible
sudo python3 -m pip uninstall ansible ansible-base ansible-core -y
sudo python3 -m pip install ansible==3.4.0
sudo python3 -m pip install --upgrade --ignore-installed PyYAML
sudo python3 -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo apt update -y
sudo apt install jq -y
sudo apt-get remove ansible -y
sudo python3 -m pip uninstall ansible
sudo python3 -m pip uninstall ansible ansible-base ansible-core -y
sudo python3 -m pip install ansible==3.4.0
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
sudo apt update -y
sudo apt install jq -y
sudo apt-get remove ansible -y
sudo python3 -m pip uninstall ansible
sudo python3 -m pip uninstall ansible ansible-core -y
sudo python3 -m pip install ansible==3.4.0
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/units.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo apt update -y
sudo apt install jq -y
sudo apt-get remove ansible -y
sudo python3 -m pip uninstall ansible
sudo python3 -m pip uninstall ansible ansible-base ansible-core -y
sudo python3 -m pip install ansible==3.4.0
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
Expand Down
1 change: 1 addition & 0 deletions ci/check_version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

#############################################################################
# #
Expand Down
1 change: 1 addition & 0 deletions ci/pypi_publish.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

#############################################################################
# #
Expand Down
5 changes: 3 additions & 2 deletions ci/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

#############################################################################
# #
Expand Down Expand Up @@ -103,13 +104,13 @@ if [ "$publish" == "1" ]; then
docker build . --file Dockerfile --tag quay.io/kubeinit/kubeinit:$current_galaxy_version
docker push quay.io/kubeinit/kubeinit:$current_galaxy_version

echo 'Building and pushing the Ansible collecction to Ansible Galaxy...'
echo 'Building and pushing the Ansible collection to Ansible Galaxy...'
cd ./kubeinit/
mkdir -p releases
ansible-galaxy collection build -v --force --output-path releases/
ansible-galaxy collection publish \
releases/$current_galaxy_namespace-$current_galaxy_name-$current_galaxy_version.tar.gz --api-key $GALAXY_KEY

echo 'Building and pushing a new tag GitHub...'
curl --data "$(generate_post_data)" "https://api.github.com/repos/kubeinit/kubeinit/releases?access_token=$GITHUB_TOKEN"
curl -H "Authorization: token $GITHUB_TOKEN" --data "$(generate_post_data)" "https://api.github.com/repos/kubeinit/kubeinit/releases"
fi
1 change: 1 addition & 0 deletions ci/sanity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

#############################################################################
# #
Expand Down
1 change: 1 addition & 0 deletions ci/units.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

#############################################################################
# #
Expand Down
1 change: 1 addition & 0 deletions ci/yamlfind.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

#############################################################################
# #
Expand Down

0 comments on commit 187130b

Please sign in to comment.