Skip to content

Commit c384632

Browse files
committed
Update OCI CLI installation method in deploy workflow
Replaced pip installation with the official OCI CLI installation script to ensure a more reliable setup process. Added a debug command for validating OCI CLI availability before deploying to Container Instances.
1 parent d91d65f commit c384632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy-to-oci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Set up OCI CLI
4343
run: |
44-
pip install oci-cli
44+
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
4545
mkdir -p ~/.oci
4646
echo "${{ secrets.OCI_CONFIG }}" > ~/.oci/config
4747
echo "${{ secrets.OCI_KEY }}" > ~/.oci/key.pem
@@ -50,6 +50,7 @@ jobs:
5050
5151
- name: Deploy to Container Instances
5252
run: |
53+
oci container-instance --help \
5354
oci container-instance create \
5455
--compartment-id ${{ secrets.OCI_COMPARTMENT_ID }} \
5556
--availability-domain ${{ secrets.OCI_AVAILABILITY_DOMAIN }} \

0 commit comments

Comments
 (0)