-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from drasi-project/gh-hosted
Move getting started tutorial to Github
- Loading branch information
Showing
5 changed files
with
107 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Draft Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Version Tag' | ||
required: true | ||
|
||
jobs: | ||
getting_started: | ||
permissions: | ||
contents: write | ||
packages: read | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Zip tutorial folder | ||
run: | | ||
zip -r quickstart-dev-container.zip tutorial/getting-started | ||
- name: Create GitHub Release | ||
run: | | ||
gh release create ${{ inputs.tag }} quickstart-dev-container.zip --draft --title ${{ inputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: test-data-init | ||
data: | ||
init.sql: > | ||
CREATE TABLE "Message" ( | ||
"MessageId" integer NOT NULL, | ||
"From" character varying(50) NOT NULL, | ||
"Message" character varying(200) NOT NULL | ||
); | ||
ALTER TABLE "Message" ADD CONSTRAINT pk_message | ||
PRIMARY KEY ("MessageId"); | ||
INSERT INTO public."Message" VALUES (1, 'Buzz Lightyear', 'To infinity and beyond!'); | ||
INSERT INTO public."Message" VALUES (2, 'Brian Kernighan', 'Hello World'); | ||
INSERT INTO public."Message" VALUES (3, 'Antoninus', 'I am Spartacus'); | ||
INSERT INTO public."Message" VALUES (4, 'David', 'I am Spartacus'); | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: test-pg-config | ||
labels: | ||
app: postgres | ||
data: | ||
POSTGRES_DB: hello-world | ||
POSTGRES_USER: test | ||
POSTGRES_PASSWORD: test | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: postgres | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: postgres | ||
template: | ||
metadata: | ||
labels: | ||
app: postgres | ||
spec: | ||
containers: | ||
- name: postgres | ||
image: postgres:15-alpine | ||
args: ["-c", "wal_level=logical"] | ||
volumeMounts: | ||
- name: init | ||
mountPath: "/docker-entrypoint-initdb.d" | ||
ports: | ||
- containerPort: 5432 | ||
envFrom: | ||
- configMapRef: | ||
name: test-pg-config | ||
volumes: | ||
- name: init | ||
configMap: | ||
name: test-data-init | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgres | ||
labels: | ||
app: postgres | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 5432 | ||
selector: | ||
app: postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters