mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 03:59:14 +08:00
!2117 feat(#I4JD7S): update Docker CI&CD script
* chore: update file * chore: update * chore: update * chore: update ci file * chore: update yml file * chore: 更新脚本 * chore: update yml file * chore: update docker file path * chore: update docker image
This commit is contained in:
parent
45b1dba5d3
commit
7825ef93c8
14
.github/workflows/docker.yml
vendored
14
.github/workflows/docker.yml
vendored
@ -11,5 +11,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Build the Docker image
|
- name: Login to Docker Hub
|
||||||
run: docker build . --file src/BootstrapBlazor.Server/Linux.Dockerfile --tag bb:$(date +%s)
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push Docker images
|
||||||
|
uses: docker/build-push-action@v2.7.0
|
||||||
|
with:
|
||||||
|
file: src/BootstrapBlazor.Server/Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: argozhang/blazor:latest
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
|
#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
|
||||||
#For more information, please see https://aka.ms/containercompat
|
#For more information, please see https://aka.ms/containercompat
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user