Skip to content

Commit 6d943dd

Browse files
author
ms
committed
workflow update
1 parent 1983823 commit 6d943dd

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

.github/workflows/demoapp.yml

+28-16
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,31 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v2
23-
- uses: azure/docker-login@v1
24-
with:
25-
# login-server: index.docker.io # docker.io is the default one
26-
username: ${{ secrets.REGISTRY_USERNAME }}
27-
password: ${{ secrets.REGISTRY_PASSWORD }}
28-
- run: |
29-
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 }} .
30-
docker push michalsw/simple-web-server:${{ github.sha }}
31-
- uses: azure/webapps-deploy@v2
32-
with:
33-
app-name: 'demogoapp'
34-
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
35-
images: 'michalsw/simple-web-server:${{ github.sha }}'
36-
# env:
37-
# SERVER_PORT: '80'
22+
- run: echo "docker build"
23+
24+
# jobs:
25+
# demo:
26+
# runs-on: ubuntu-latest
27+
# steps:
28+
# - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
29+
# - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
30+
# - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
31+
# build:
32+
# runs-on: ubuntu-latest
33+
# steps:
34+
# - uses: actions/checkout@v2
35+
# - uses: azure/docker-login@v1
36+
# with:
37+
# # login-server: index.docker.io # docker.io is the default one
38+
# username: ${{ secrets.REGISTRY_USERNAME }}
39+
# password: ${{ secrets.REGISTRY_PASSWORD }}
40+
# - run: |
41+
# 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 }} .
42+
# docker push michalsw/simple-web-server:${{ github.sha }}
43+
# - uses: azure/webapps-deploy@v2
44+
# with:
45+
# app-name: 'demogoapp'
46+
# publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
47+
# images: 'michalsw/simple-web-server:${{ github.sha }}'
48+
# # env:
49+
# # SERVER_PORT: '80'

0 commit comments

Comments
 (0)