Skip to content

Commit cc96fd5

Browse files
committed
Update OCI CLI path in deployment workflow
Replaced the generic `oci` command with its full path to ensure the OCI CLI executable is correctly located during the deployment process. This change addresses potential PATH issues in the GitHub runner environment.
1 parent 93fdde4 commit cc96fd5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,8 @@ jobs:
5353
5454
- name: Deploy to Container Instances
5555
run: |
56-
# Check if OCI CLI is in PATH
57-
which oci || echo "OCI CLI not found in PATH"
58-
59-
# Deploy to container instances
60-
oci container-instances container-instance create \
56+
# Use the full path to the OCI CLI executable
57+
/home/runner/bin/oci container-instances container-instance create \
6158
--compartment-id ${{ secrets.OCI_COMPARTMENT_ID }} \
6259
--availability-domain ${{ secrets.OCI_AVAILABILITY_DOMAIN }} \
6360
--shape ${{ secrets.OCI_SHAPE }} \

0 commit comments

Comments
 (0)