Skip to content

Commit 991fcb1

Browse files
committed
Update OCI deployment workflow to configure resources
Added shape configuration for OCPUs and memory and VNICs for subnet configuration in the deployment step. This enhances resource allocation and network settings for container instances.
1 parent cc96fd5 commit 991fcb1

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
@@ -51,6 +51,7 @@ jobs:
5151
echo "export PATH=$PATH:$HOME/bin" >> $GITHUB_ENV
5252
source $HOME/.bashrc
5353
54+
5455
- name: Deploy to Container Instances
5556
run: |
5657
# Use the full path to the OCI CLI executable
@@ -59,4 +60,6 @@ jobs:
5960
--availability-domain ${{ secrets.OCI_AVAILABILITY_DOMAIN }} \
6061
--shape ${{ secrets.OCI_SHAPE }} \
6162
--display-name my-app \
62-
--containers '[{"image":"${{ secrets.OCI_REGISTRY }}/${{ secrets.OCI_REPOSITORY }}:${{ github.sha }}"}]'
63+
--containers '[{"image":"${{ secrets.OCI_REGISTRY }}/${{ secrets.OCI_REPOSITORY }}:${{ github.sha }}"}]' \
64+
--shape-config '{"ocpus": 1, "memory-in-gbs": 2}' \
65+
--vnics '[{"subnet-id": "${{ secrets.OCI_SUBNET_ID }}"}]'

0 commit comments

Comments
 (0)