File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ {
2
+ "recommendations" : [" ms-vscode-remote.remote-containers" ]
3
+ }
You can’t perform that action at this time.
0 commit comments