fix: update build action to use podman
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 2m7s
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 2m7s
This commit is contained in:
parent
e1c5362cf5
commit
b9c44408ad
|
@ -7,7 +7,7 @@ jobs:
|
||||||
Build-Blog-Image:
|
Build-Blog-Image:
|
||||||
runs-on: archlinux
|
runs-on: archlinux
|
||||||
steps:
|
steps:
|
||||||
- uses: https://git.rrricardo.top/actions/checkout@v4
|
- uses: https://mirrors.rrricardo.top/actions/checkout.git@v4
|
||||||
name: Check out code
|
name: Check out code
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
@ -15,12 +15,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd YaeBlog
|
cd YaeBlog
|
||||||
dotnet publish
|
dotnet publish
|
||||||
|
- name: Alias podman as docker
|
||||||
|
run: |
|
||||||
|
echo 'alias docker="podman"' >> $HOME/.bashrc
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
run: |
|
run: |
|
||||||
cd YaeBlog
|
cd YaeBlog
|
||||||
docker build . -t registry.cn-beijing.aliyuncs.com/jackfiled/blog:latest
|
docker build . -t registry.cn-beijing.aliyuncs.com/jackfiled/blog:latest
|
||||||
- name: Login aliyun docker registry
|
- name: Login aliyun docker registry
|
||||||
uses: https://git.rrricardo.top/actions/login-action@v3
|
uses: https://mirrors.rrricardo.top/actions/login-action.git@v3
|
||||||
with:
|
with:
|
||||||
registry: registry.cn-beijing.aliyuncs.com
|
registry: registry.cn-beijing.aliyuncs.com
|
||||||
username: 初冬的朝阳
|
username: 初冬的朝阳
|
||||||
|
|
Loading…
Reference in New Issue
Block a user