Skip to content

Commit d91d65f

Browse files
committed
Update OCI CLI command for container deployment
Replaces deprecated 'oci container-instances create-container-instance' with 'oci container-instance create' to align with the latest CLI syntax. Adjusts parameter names to ensure compatibility with the updated command format.
1 parent 06819da commit d91d65f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
5151
- name: Deploy to Container Instances
5252
run: |
53-
oci container-instances create-container-instance \
53+
oci container-instance create \
5454
--compartment-id ${{ secrets.OCI_COMPARTMENT_ID }} \
5555
--availability-domain ${{ secrets.OCI_AVAILABILITY_DOMAIN }} \
5656
--shape ${{ secrets.OCI_SHAPE }} \
5757
--display-name my-app \
58-
--container-config '[{"image":"${{ secrets.OCI_REGISTRY }}/${{ secrets.OCI_REPOSITORY }}:${{ github.sha }}"}]'
58+
--containers '[{"image":"${{ secrets.OCI_REGISTRY }}/${{ secrets.OCI_REPOSITORY }}:${{ github.sha }}"}]'

0 commit comments

Comments
 (0)