Skip to content

Commit

Permalink
fix Continuous integration
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Jun 5, 2024
1 parent 5dff395 commit 3a3e094
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,51 +169,3 @@ jobs:
${{ env.REGISTRY }}/malach-it/boruta-admin:${{ steps.short-sha.outputs.sha }},
${{ env.REGISTRY }}/malach-it/boruta-admin:${{ github.head_ref || github.ref_name }}
labels: ${{ steps.meta.outputs.labels }}

deploy:
runs-on: ubuntu-20.04
needs:
- build-and-push-server-image
- build-and-push-gateway-image

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install OS dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl python3-pip apt-transport-https
- name: Install helm
run: |
curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install -y helm
- name: Install ansible
run: |
pip3 install --upgrade setuptools pip
pip3 install ansible pyhelm grpcio requests openshift kubernetes
ansible-galaxy collection install kubernetes.core
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(<kubectl.sha256) kubectl" | sha256sum --check
sudo mv ./kubectl /usr/bin/kubectl
sudo chmod 755 /usr/bin/kubectl
- uses: benjlevesque/short-sha@v1.2
id: short-sha
with:
length: 8

- name: Deploy
run: |
cd ansible
echo ${{ secrets.VAULT_PASSWORD }} > vault_pass.txt
ansible-vault decrypt ./.kube/kubeconfig-k8s-boruta.yaml --vault-password-file vault_pass.txt
KUBECONFIG=./.kube/kubeconfig-k8s-boruta.yaml ansible-playbook -i ./inventories/scaleway deploy.yml -e release_tag=${{ steps.short-sha.outputs.sha }} --vault-password-file vault_pass.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ defmodule BorutaWeb.Integration.OpenidConnectTest do
conn = get(conn, Routes.jwks_path(conn, :jwks_index))

assert %{"keys" => keys} = json_response(conn, 200)
assert Enum.count(keys) == 1
assert Enum.empty?(keys)
end

test "returns all clients keys", %{conn: conn} do
Expand Down

0 comments on commit 3a3e094

Please sign in to comment.