Skip to content

Commit b6956f0

Browse files
committed
feat(typescript-node): adds workflow config
1 parent b830214 commit b6956f0

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: TypeScript Node - Nightly
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'source/typescript-node/Dockerfile'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v3
17+
18+
- name: Login to Docker Hub
19+
run: |
20+
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
21+
22+
- name: Generate nightly ID with commit
23+
run: |
24+
TIMESTAMP=$(date +'%Y%m%d')
25+
SHA=$(git rev-parse --short HEAD)
26+
echo "NIGHTLY_ID=nightly-${TIMESTAMP}-${SHA}" >> $GITHUB_ENV
27+
28+
- name: Build & Push Docker image
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: source/typescript-node
32+
push: true
33+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/typescript-node:nightly-${{ env.NIGHTLY_ID }}
34+
cache-from: type=gha
35+
cache-to: type=gha,mode=max

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["ms-vscode-remote.remote-containers"]
3+
}

0 commit comments

Comments
 (0)