-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.38 KB
/
pushtomaster.yml
File metadata and controls
42 lines (33 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Publish Pre-Release Docker
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
jobs:
build:
name: "Publish Pre-Release Docker"
env:
ASPNETCORE_ENVIRONMENT: "Production"
NODE_VERSION: '12.x' # set this to the node version to use
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- name: Restore Nuget Packages
run: dotnet restore EstateAdministrationUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1.4.4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Restore Nuget Packages
run: dotnet restore EstateAdministrationUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- name: Build Code
run: |
dotnet build EstateAdministrationUI.sln --configuration ReleaseNoNode
- name: Publish Images to Docker Hub
run: |
docker build . --file EstateAdministrationUI/Dockerfile --tag stuartferguson/estateadministrationui:master
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }}
docker push stuartferguson/estateadministrationui:master