Skip to content

Commit 93fdde4

Browse files
committed
Update deploy workflow to ensure OCI CLI is in PATH
Added steps to verify OCI CLI presence in PATH and updated environment setup during the deploy workflow. These changes ensure smoother deployments by preemptively addressing potential PATH-related issues.
1 parent af45216 commit 93fdde4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,15 @@ jobs:
4848
echo "${{ secrets.OCI_KEY }}" > ~/.oci/key.pem
4949
chmod 600 ~/.oci/key.pem
5050
chmod 600 ~/.oci/config
51+
echo "export PATH=$PATH:$HOME/bin" >> $GITHUB_ENV
52+
source $HOME/.bashrc
5153
5254
- name: Deploy to Container Instances
5355
run: |
54-
oci container-instance --help \
56+
# Check if OCI CLI is in PATH
57+
which oci || echo "OCI CLI not found in PATH"
58+
59+
# Deploy to container instances
5560
oci container-instances container-instance create \
5661
--compartment-id ${{ secrets.OCI_COMPARTMENT_ID }} \
5762
--availability-domain ${{ secrets.OCI_AVAILABILITY_DOMAIN }} \

0 commit comments

Comments
 (0)