Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit e6d4c66

Browse files
committed
bring in line with changes
1 parent 48ec6d1 commit e6d4c66

File tree

1 file changed

+25
-45
lines changed

1 file changed

+25
-45
lines changed

actions/README.md

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -21,66 +21,46 @@ A partner that wants to leverage the Quickstart Actions must have the following:
2121

2222
A good example of such a repo is https://github.com/oracle-quickstart/oci-h2o
2323

24-
## Available actions
25-
26-
Currently there is a limited number of actions available, which can support the automated update of an existing marketplace listing.
27-
28-
### terraform-test
29-
24+
## terraform-apply
3025
This action will test any Terraform code that is under the 'terraform' directory in the repo root. The action will create and then destroy all resources. The action uses [Terratest](https://github.com/gruntwork-io/terratest). No other assertions are being performed currently.
3126

32-
### create-stack
33-
27+
## build-orm-zip
3428
This action packages the terraform code from the partner repo into an archive that can be later submitted to the marketplace.
3529

36-
### create-dummy-image
37-
38-
This action will a marketplace-ready image that is based on an existing OCI platform image.
39-
40-
### create-partner-image
41-
42-
Similar to the above actions, but this action accepts an OCI image OCID as input. Partners can use their own custom images as baseline and create marketplace-ready images that include their software. See the workflow example below for syntax.
43-
44-
### update-listings
30+
## create-image
31+
This action creates a marketplace ready image that is based on an existing OCI platform image.
4532

33+
## update-listing
4634
This actions takes as input a OCI custom image OCID and a stack archive (terraform provisioning code) and used the API_creds secret to update an existing Marketplace listing with the new code or software that has been updated in the repo.
4735

48-
## Example workflow
36+
## Example Workflow
4937

5038
```
5139
on:
5240
push:
5341
branches:
54-
- 'development'
55-
name: OCI-Marketplace
42+
- 'master'
43+
name: Marketplace
5644
jobs:
57-
test-terraform-code:
58-
name: Update Marketplace Stack Listing
59-
runs-on: ubuntu-latest
45+
update-stack-listing:
46+
name: Update Stack Listing
47+
runs-on: ubuntu-latest
6048
env:
6149
TF_VAR_compartment_ocid: ${{ secrets.TF_VAR_compartment_ocid }}
62-
TF_VAR_fingerprint: ${{ secrets.TF_VAR_fingerprint }}
63-
TF_VAR_private_key: ${{ secrets.TF_VAR_private_key }}
50+
TF_VAR_fingerprint: ${{ secrets.TF_VAR_fingerprint }}
51+
TF_VAR_private_key: ${{ secrets.TF_VAR_private_key }}
6452
TF_VAR_private_key_path: $GITHUB_WORKSPACE/oci.pem
65-
TF_VAR_tenancy_ocid: ${{ secrets.TF_VAR_tenancy_ocid }}
66-
TF_VAR_user_ocid: ${{ secrets.TF_VAR_user_ocid }}
53+
TF_VAR_tenancy_ocid: ${{ secrets.TF_VAR_tenancy_ocid }}
54+
TF_VAR_user_ocid: ${{ secrets.TF_VAR_user_ocid }}
55+
API_CREDS: ${{ secrets.API_CREDS }}
6756
steps:
68-
- uses: actions/checkout@master
69-
name: Checkout Quickstart Repo
70-
with:
71-
ref: development
72-
- uses: "oci-quickstart/oci-quickstart/partners/actions/[email protected]"
73-
name: Test Terraform Code
74-
- uses: "oci-quickstart/oci-quickstart/partners/actions/[email protected]"
75-
name: Create Stack Archive
76-
if: success()
77-
#- user: "oci-quickstart/oci-quickstart/partners/actions/[email protected]"
78-
# name: Create Dummy Image
79-
- uses: "oci-quickstart/oci-quickstart/partners/actions/[email protected]"
80-
name: Create Partner Marketplace-ready Image
81-
with:
82-
base-image: 'ocid1.image.oc1.iad.aaaaaaaavxqdkuyamlnrdo3q7qa7q3tsd6vnyrxjy3nmdbpv7fs7um53zh5q'
83-
- uses: "oci-quickstart/oci-quickstart/partners/actions/[email protected]"
84-
name: Update Marketplace Listing
85-
57+
- name: Checkout
58+
uses: actions/checkout@master
59+
- name: Terraform Apply
60+
uses: "oci-quickstart/oci-quickstart/actions/terraform-apply@master"
61+
- name: Build ORM Zip
62+
uses: "oci-quickstart/oci-quickstart/actions/build-orm-zip@master"
63+
if: success()
64+
- name: Update Listing
65+
uses: "oci-quickstart/oci-quickstart/actions/update-listing@master"
8666
```

0 commit comments

Comments
 (0)