Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1449792: Adding pipeline to integrate modified apps into Snowflake #9

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-osalazarlizano
Copy link
Contributor

@sfc-gh-osalazarlizano sfc-gh-osalazarlizano commented Jun 24, 2024

Integrate each modified app using snow app run by setting up a new CI pipeline. E.g.

Given the following repo structure:

/native-apps-examples
   |-mailorder
   |           |-*
   |-data-mapping
   |           |-*
   |-account-privileges
   |           |-*
   |..

From the structure above, if there are changes only in mailorder and account privileges, only these apps will be deployed.
For apps that need some dependent data before being deployed, you need to create a new file in the app's root named ci.sh to define the steps needed to successfully deploy the application. E.g.

 snow sql -f 'prepare/references.sql'
 snow app run
 snow app teardown

.github/workflows/ci-integration.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
data-mapping/ci.sh Outdated Show resolved Hide resolved
sfc-gh-cgorrie
sfc-gh-cgorrie previously approved these changes Jun 26, 2024
Copy link
Contributor

@sfc-gh-cgorrie sfc-gh-cgorrie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge once you have added set -e

CONTRIBUTING.md Outdated Show resolved Hide resolved
data-mapping/ci.sh Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants