Skip to content

Commit a400b2c

Browse files
committed
added .devcontainer and .github from starter-sample
1 parent 3080b0a commit a400b2c

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Note: universal image is not compatible with the devcontainer tools.
2+
# we use the typescript-node image instead here but should switch out per
3+
# project requirements. #REMOVE_ME_AFTER_EDITING
4+
5+
# FROM mcr.microsoft.com/devcontainers/go:1.22-bookworm
6+
# FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm
7+
# FROM mcr.microsoft.com/devcontainers/php:8.3-bookworm
8+
# FROM mcr.microsoft.com/devcontainers/ruby:3.2-bookworm
9+
# FROM mcr.microsoft.com/devcontainers/java:11-bookworm
10+
# FROM mcr.microsoft.com/devcontainers/rust:1-bookworm
11+
FROM mcr.microsoft.com/devcontainers/typescript-node:22-bookworm
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile",
4+
"context": ".."
5+
},
6+
"features": {
7+
"ghcr.io/defanglabs/devcontainer-feature/defang-cli:1.0.4": {},
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
9+
}
10+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- name: Checkout Repo
17+
uses: actions/checkout@v4
18+
19+
- name: Deploy
20+
uses: DefangLabs/[email protected]
21+
#REMOVE_ME_AFTER_EDITING - Replace the following line with the list of environment variables you want to pass to the action
22+
with:
23+
config-env-vars: ENV1 ENV2
24+
env:
25+
ENV1: ${{ secrets.ENV1 }}
26+
ENV2: ${{ secrets.ENV2 }}
File renamed without changes.

samples/platformatic/app/compose.yaml renamed to samples/platformatic/compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
services:
22
platformatic-app:
33
build:
4-
context: .
4+
context: ./app
5+
dockerfile: Dockerfile
56
ports:
67
- target: 3042
78
published: 3042

0 commit comments

Comments
 (0)