fix err #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux Container Node Workflow | |
# on: [push] | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
demo: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "docker build" | |
# jobs: | |
# demo: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
# - run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
# - run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
# build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: azure/docker-login@v1 | |
# with: | |
# # login-server: index.docker.io # docker.io is the default one | |
# username: ${{ secrets.REGISTRY_USERNAME }} | |
# password: ${{ secrets.REGISTRY_PASSWORD }} | |
# - run: | | |
# 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 }} . | |
# docker push michalsw/simple-web-server:${{ github.sha }} | |
# - uses: azure/webapps-deploy@v2 | |
# with: | |
# app-name: 'demogoapp' | |
# publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
# images: 'michalsw/simple-web-server:${{ github.sha }}' | |
# # env: | |
# # SERVER_PORT: '80' |