feat: add build.ps1 script.
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 3m39s
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 3m39s
This commit is contained in:
@@ -12,16 +12,12 @@ jobs:
|
||||
with:
|
||||
lfs: true
|
||||
- name: Build project.
|
||||
run: |
|
||||
cd YaeBlog
|
||||
dotnet publish
|
||||
- name: Build docker image.
|
||||
run: |
|
||||
proxy
|
||||
podman pull mcr.microsoft.com/dotnet/aspnet:10.0
|
||||
unproxy
|
||||
cd YaeBlog
|
||||
podman build . -t ccr.ccs.tencentyun.com/jackfiled/blog --build-arg COMMIT_ID=$(git rev-parse --short=10 HEAD)
|
||||
pwsh build.ps1 build
|
||||
- name: Workaround to make sure podman-login working.
|
||||
run: |
|
||||
mkdir /root/.docker
|
||||
|
||||
Reference in New Issue
Block a user