Skip to content

Commit c78936a

Browse files
committed
Update OCI CLI setup in deployment workflow
Revised the OCI CLI installation process to use a downloaded script with default options and ensured the binary directory is added to the PATH. This improves reliability and simplifies the setup process for deployments.
1 parent c384632 commit c78936a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

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

4242
- name: Set up OCI CLI
4343
run: |
44-
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
44+
curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh -o install.sh
45+
bash install.sh --accept-all-defaults
46+
export PATH=$HOME/bin:$PATH
4547
mkdir -p ~/.oci
4648
echo "${{ secrets.OCI_CONFIG }}" > ~/.oci/config
4749
echo "${{ secrets.OCI_KEY }}" > ~/.oci/key.pem
@@ -50,6 +52,7 @@ jobs:
5052
5153
- name: Deploy to Container Instances
5254
run: |
55+
export PATH=$HOME/bin:$PATH
5356
oci container-instance --help \
5457
oci container-instance create \
5558
--compartment-id ${{ secrets.OCI_COMPARTMENT_ID }} \

0 commit comments

Comments
 (0)