55 DOCKER_PUSH : ${{ github.ref == 'refs/heads/main' }}
66
77on :
8- workflow_dispatch :
98 push :
10- branches :
11- - main
12- - develop
13- paths-ignore :
14- - ' README.md'
9+ branches : [main, develop]
10+ paths-ignore : [README.md]
1511 pull_request :
16- branches :
17- - main
12+ branches : [main]
13+ workflow_dispatch :
1814 schedule :
19- # https://crontab.guru/
20- # Rebuild 2am every Monday, LSIO rebuilds on Friday's
21- - cron : ' 0 2 * * MON'
15+ - cron : " 0 2 * * MON"
2216
2317jobs :
2418 build :
@@ -27,72 +21,60 @@ jobs:
2721
2822 steps :
2923
30- # https://github.com/actions/checkout
24+ # https://github.com/marketplace/ actions/checkout
3125 - name : ' Checkout Code'
32- uses : actions/checkout@v2
26+ uses : actions/checkout@v3
3327
34- # https://github.com/docker/ setup-qemu-action
28+ # https://github.com/marketplace/actions/docker- setup-qemu
3529 - name : ' Setup QEMU'
36- uses : docker/setup-qemu-action@v1
30+ uses : docker/setup-qemu-action@v2
3731
38- # https://github.com/docker/ setup-buildx-action
32+ # https://github.com/marketplace/actions/docker- setup-buildx
3933 - name : ' Setup Docker Buildx'
40- uses : docker/setup-buildx-action@v1
34+ uses : docker/setup-buildx-action@v2
4135
4236 # https://github.com/marketplace/actions/docker-login
4337 - name : ' Login to Docker Hub'
44- uses : docker/login-action@v1
38+ uses : docker/login-action@v2
4539 with :
4640 username : ${{ secrets.DOCKER_HUB_USERNAME }}
4741 password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
4842
4943 # https://github.com/marketplace/actions/build-and-push-docker-images
5044
51- # .NET Core 3.1
52- - name : ' Build and Push .NET Core 3.1'
53- uses : docker/build-push-action@v2
54- with :
55- platforms : linux/amd64
56- push : ${{ env.DOCKER_PUSH }}
57- tags : |
58- ptr727/vscode-server-dotnetcore:3.1
59- build-args : |
60- LABEL_VERSION=3.1
61- INSTALL_VERSION=dotnet-sdk-3.1
62-
63- # .NET 5.0
64- - name : ' Build and Push .NET 5.0'
65- uses : docker/build-push-action@v2
45+ # .NET 6.0
46+ - name : ' Build and Push .NET 6.0'
47+ uses : docker/build-push-action@v4
6648 with :
6749 platforms : linux/amd64
6850 push : ${{ env.DOCKER_PUSH }}
6951 tags : |
70- ptr727/vscode-server-dotnetcore:5 .0
52+ ptr727/vscode-server-dotnetcore:6 .0
7153 build-args : |
72- LABEL_VERSION=5 .0
73- INSTALL_VERSION=dotnet-sdk-5 .0
54+ LABEL_VERSION=6 .0
55+ INSTALL_VERSION=dotnet-sdk-6 .0
7456
75- # .NET 6 .0
76- - name : ' Build and Push .NET 6 .0'
77- uses : docker/build-push-action@v2
57+ # .NET 7 .0
58+ - name : ' Build and Push .NET 7 .0'
59+ uses : docker/build-push-action@v4
7860 with :
7961 platforms : linux/amd64
8062 push : ${{ env.DOCKER_PUSH }}
8163 tags : |
82- ptr727/vscode-server-dotnetcore:6 .0
64+ ptr727/vscode-server-dotnetcore:7 .0
8365 build-args : |
84- LABEL_VERSION=6 .0
85- INSTALL_VERSION=dotnet-sdk-6 .0
66+ LABEL_VERSION=7 .0
67+ INSTALL_VERSION=dotnet-sdk-7 .0
8668
87- # .NET Core 3.1, .NET 5.0, and .NET 6 .0
88- - name : ' Build and Push .NET Core 3.1, .NET 5.0, and .NET 6 .0'
89- uses : docker/build-push-action@v2
69+ # .NET 6.0 and .NET 7 .0
70+ - name : ' Build and Push .NET 6.0 and .NET 7 .0'
71+ uses : docker/build-push-action@v4
9072 with :
9173 platforms : linux/amd64
9274 push : ${{ env.DOCKER_PUSH }}
9375 tags : |
9476 ptr727/vscode-server-dotnetcore:latest
95- ptr727/vscode-server-dotnetcore:31.50.60
77+ ptr727/vscode-server-dotnetcore:60.70
9678 build-args : |
97- LABEL_VERSION=31.50.60
98- "INSTALL_VERSION=dotnet-sdk-3.1 dotnet-sdk-5. 0 dotnet-sdk-6 .0"
79+ LABEL_VERSION=60.70
80+ "INSTALL_VERSION=dotnet-sdk-6. 0 dotnet-sdk-7 .0"
0 commit comments