Skip to content

Commit 40b00de

Browse files
author
ms
committed
azure app service
1 parent d226d2b commit 40b00de

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

.github/workflows/demoapp.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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'

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
simplews*
1+
simple-web-server

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ ENV SERVER_PORT ""
3333

3434
COPY --from=builder /tmp/dummy/${APPNAME}-${VERSION} /usr/bin/${APPNAME}
3535

36-
CMD ["simplews"]
36+
CMD ["simple-web-server"]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ALPINE_VERSION := 3.13
33

44
GIT_REPO := github.com/michalswi/simple-web-server
55
DOCKER_REPO := michalsw
6-
APPNAME := simplews
6+
APPNAME := simple-web-server
77

88
VERSION ?= $(shell git describe --always)
99

0 commit comments

Comments
 (0)