File tree 4 files changed +31
-3
lines changed
4 files changed +31
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Linux Container Node Workflow
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+
12
+ - uses : azure/docker-login@v1
13
+ with :
14
+ # login-server: index.docker.io # docker.io is the default one
15
+ username : ${{ secrets.REGISTRY_USERNAME }}
16
+ password : ${{ secrets.REGISTRY_PASSWORD }}
17
+
18
+ - run : |
19
+ docker build --build-arg GOLANG_VERSION=1.15.6 --build-arg ALPINE_VERSION=3.13 --build-arg APPNAME=simple-web-server --build-arg VERSION=${{ github.sha }} -t michalsw/simple-web-server:${{ github.sha }} .
20
+ docker push michalsw/simple-web-server:${{ github.sha }}
21
+
22
+ - uses : azure/webapps-deploy@v2
23
+ with :
24
+ app-name : ' demogoapp'
25
+ publish-profile : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
26
+ images : ' michalsw/simple-web-server:${{ github.sha }}'
27
+ # env:
28
+ # SERVER_PORT: '80'
Original file line number Diff line number Diff line change 1
- simplews *
1
+ simple-web-server
Original file line number Diff line number Diff line change @@ -33,4 +33,4 @@ ENV SERVER_PORT ""
33
33
34
34
COPY --from=builder /tmp/dummy/${APPNAME}-${VERSION} /usr/bin/${APPNAME}
35
35
36
- CMD ["simplews " ]
36
+ CMD ["simple-web-server " ]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ALPINE_VERSION := 3.13
3
3
4
4
GIT_REPO := github.com/michalswi/simple-web-server
5
5
DOCKER_REPO := michalsw
6
- APPNAME := simplews
6
+ APPNAME := simple-web-server
7
7
8
8
VERSION ?= $(shell git describe --always)
9
9
You can’t perform that action at this time.
0 commit comments