mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
24 lines
593 B
YAML
24 lines
593 B
YAML
name: .NET Core
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
- name: Build with dotnet
|
|
run: dotnet build --configuration Release
|
|
- name: Build image
|
|
run: docker build -f "Dockerfile" --force-rm -t laozhangisphi/apkimg .
|
|
- name: Log into registry
|
|
run: echo "${{ secrets.ACCESS_TOKEN }}" | docker login -u laozhangisphi --password-stdin
|
|
- name: Push image
|
|
run: docker push laozhangisphi/apkimg
|