-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 979 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
41
42
43
name: Deployment
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
build_pipeline:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- 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 }}'