Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
Signed-off-by: kanishkarj <[email protected]>
  • Loading branch information
kanishkarj committed Jun 15, 2020
1 parent 1f5d887 commit 0fc3ef9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Learn Layer5

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
docker:
name: Docker build and push
runs-on: ubuntu-latest
steps:
- name: Check out code
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && success()
uses: actions/checkout@master
with:
fetch-depth: 1
- name: Docker login
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && success()
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker build & push
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && success()
run: |
make build-img-service
make image-push

0 comments on commit 0fc3ef9

Please sign in to comment.