Skip to content

Commit

Permalink
remove source path gcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
patou committed Dec 5, 2024
1 parent 5a9040c commit f5272fe
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ jobs: # a collection of steps
- run:
name: Deploy Apps
command: |
source ~/google-cloud-sdk/path.bash.inc
cd liste-envies-war
echo ${FIREBASE_SERVICE_ACCOUNT_TEST} > src/main/resources/firebase.json
echo ${GOOGLE_CLIENT_SECRET_TEST} > client-secret.json;
Expand All @@ -135,11 +134,43 @@ jobs: # a collection of steps
key: java-{{ checksum "liste-envies-war/pom.xml" }}
- run:
name: Update Kubernetes Key
command: curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --yes --dearmor -o /usr/share/keyrings/kubernetes-apt-keyring.gpg
command: curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --yes --dearmor -o /usr/share/keyrings/kubernetes-apt-keyring.gpg
- run:
name: Install deps
command: |
sudo sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list
sudo sed -i '/security.debian.org/s/^/#/' /etc/apt/sources.list
sudo apt-get update && sudo apt-get install apt-transport-https ca-certificates gnupg
- run:
name: Recreate Java Keystore
command: |
if [ -d /etc/ssl/certs/java/cacerts ]; then
sudo rm -rf /etc/ssl/certs/java/cacerts
fi
# Créer un nouveau keystore temporaire
sudo keytool -genkeypair -alias temp -keyalg RSA -keystore /etc/ssl/certs/java/cacerts -storepass changeit -keypass changeit -dname "CN=temp"
# Supprimer le keystore temporaire
sudo rm -f /etc/ssl/certs/java/cacerts
# Créer un lien symbolique vers les certificats système
sudo ln -sf /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/java/cacerts
- run:
name: Reinstall Cacerts
command: |
# Supprimer toute trace de fichiers problématiques
if [ -e /etc/ssl/certs/java/cacerts ]; then
sudo rm -rf /etc/ssl/certs/java/cacerts
fi
# Réinstaller ca-certificates-java et OpenJDK
sudo apt-get update && sudo apt-get install --reinstall -y ca-certificates-java openjdk-11-jre-headless
# Forcer la régénération du keystore
sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure
# Vérifier que le keystore est valide
sudo keytool -list -keystore /etc/ssl/certs/java/cacerts -storepass changeit
# Régler les permissions
sudo chmod 644 /etc/ssl/certs/java/cacerts
- run:
name: Install Python 3
command: |
sudo apt-get update
sudo apt-get install -y python3 python3-distutils
sudo ln -sf /usr/bin/python3 /usr/bin/python
- run:
Expand All @@ -151,7 +182,6 @@ jobs: # a collection of steps
- run:
name: Deploy Apps
command: |
source ~/google-cloud-sdk/path.bash.inc
cd liste-envies-war
echo ${FIREBASE_SERVICE_ACCOUNT} > src/main/resources/firebase.json
echo ${GOOGLE_CLIENT_SECRET} > client-secret.json;
Expand Down

0 comments on commit f5272fe

Please sign in to comment.