Skip to content

Commit f769dbd

Browse files
committed
Update workflow to use latest action versions and keys
Upgraded `actions/checkout` to v3 for better performance and features. Replaced `oracle-actions/setup-oci-cli` with `configure-oci-credentials` for improved configuration handling. Adjusted key fields to align with the updated action requirements.
1 parent 3358bb5 commit f769dbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515

1616
- name: Set up OCI CLI
17-
uses: oracle-actions/setup-oci-cli@v1
17+
uses: oracle-actions/configure-oci-credentials@v1
1818
with:
19-
user-id: ${{ secrets.OCI_USER_OCID }}
19+
key-id: ${{ secrets.OCI_USER_OCID }}
2020
fingerprint: ${{ secrets.OCI_FINGERPRINT }}
21-
private-key: ${{ secrets.OCI_PRIVATE_KEY }}
21+
key-content: ${{ secrets.OCI_PRIVATE_KEY }}
2222
tenancy-id: ${{ secrets.OCI_TENANCY_OCID }}
2323
region: ${{ secrets.OCI_REGION }}
2424

@@ -50,7 +50,7 @@ jobs:
5050
--display-name "admin-hub-api" \
5151
--shape "VM.Standard.E2.1.Micro" \
5252
--shape-config '{"ocpus": 1, "memoryInGBs": 1}' \
53-
--vnics '[{"subnetId": "${{ secrets.OCI_SUBNET_ID }}", "displayName": "primary-vnic"}]' \
53+
--vnics '[{"subnetId": "${{ secrets.OCI_SUBNET_ID }}", "displayName": "primary-vnic"}]'
5454
--containers '[{
5555
"displayName": "admin-hub-api",
5656
"imageUrl": "${{ secrets.OCI_REGISTRY }}/${{ secrets.REPOSITORY_NAME }}:${{ env.IMAGE_TAG }}",

0 commit comments

Comments
 (0)