-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 883 Bytes
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deployment
on:
push:
tags:
- 'v*'
jobs:
deploy_pipeline:
name: Deploy
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker login
uses: azure/docker-login@v1
with:
login-server: acclabdocker.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Set env
run: echo "IMAGE_TAG=$(make -s name)" >> $GITHUB_ENV
- name: Build docker image
run: |
make -s build
- name: Push docker image
run: |
make -s dockerpush
- uses: azure/webapps-deploy@v2
with:
app-name: 'blog-api-scrapper'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: 'acclabdocker.azurecr.io/blogscraper:${{ env.IMAGE_TAG }}'