Skip to content

Commit bbacfa3

Browse files
Update to support latest SDK (#8)
1 parent 4d12944 commit bbacfa3

23 files changed

+722
-561
lines changed

.editorconfig

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ indent_size = 4
99
end_of_line = lf
1010
charset = utf-8
1111
trim_trailing_whitespace = true
12-
insert_final_newline = true
12+
insert_final_newline = true
13+
14+
[Makefile]
15+
indent_style = tab
16+
17+
[*.{yaml,yml}]
18+
indent_size = 2

.github/workflows/docker.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ name: Create and publish a Docker image
55
# Configures this workflow to run every time a change is pushed to selected tags and branches
66
on:
77
push:
8-
branches:
8+
branches:
99
- main
1010
- test-ci/**
11-
tags:
11+
tags:
1212
- v**
1313

1414
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
@@ -24,30 +24,40 @@ jobs:
2424
permissions:
2525
contents: read
2626
packages: write
27-
#
2827
steps:
2928
- name: Checkout repository
30-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3130
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
3231
- name: Log in to the Container registry
33-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
32+
uses: docker/login-action@v3
3433
with:
3534
registry: ${{ env.REGISTRY }}
3635
username: ${{ github.actor }}
3736
password: ${{ secrets.GITHUB_TOKEN }}
3837
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
3938
- name: Extract metadata (tags, labels) for Docker
4039
id: meta
41-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
40+
uses: docker/metadata-action@v5
4241
with:
4342
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4443
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
4544
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
4645
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
4746
- name: Build and push Docker image
48-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
47+
uses: docker/build-push-action@v5
4948
with:
5049
context: .
5150
push: true
5251
tags: ${{ steps.meta.outputs.tags }}
5352
labels: ${{ steps.meta.outputs.labels }}
53+
- name: Build connector definition
54+
run: |
55+
set -e pipefail
56+
export DOCKER_IMAGE=$(echo "$DOCKER_METADATA_OUTPUT_JSON" | jq -r '.tags[0]')
57+
make build
58+
working-directory: ./connector-definition
59+
- uses: actions/upload-artifact@v4
60+
with:
61+
name: connector-definition.tgz
62+
path: ./connector-definition/dist/connector-definition.tgz
63+
compression-level: 0 # Already compressed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
target/
2+
dist/

.vscode/launch.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug executable 'ndc-sendgrid'",
11+
"cargo": {
12+
"args": [
13+
"build",
14+
"--bin=ndc-sendgrid",
15+
"--package=ndc-sendgrid"
16+
],
17+
"filter": {
18+
"name": "ndc-sendgrid",
19+
"kind": "bin"
20+
}
21+
},
22+
"args": [
23+
"serve",
24+
"--configuration",
25+
"."
26+
],
27+
"cwd": "${workspaceFolder}"
28+
},
29+
]
30+
}

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ This changelog documents changes between release tags.
77

88
Upcoming changes for the next versioned release.
99

10+
## v0.3
11+
12+
* Updated with the latest NDC SDK version that supports NDC Spec v0.1.0-rc.16
13+
* send_mail procedure now takes the full send mail request type and uses nested objects
1014

1115
## v0.2
1216

0 commit comments

Comments
 (0)