-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.23 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Deployment
on:
push:
branches:
- main
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@v2
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
deploy_staging_pipeline:
name: Deploy
needs: build_pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Set env
run: echo "IMAGE_TAG=$(make -s name)" >> $GITHUB_ENV
- uses: azure/webapps-deploy@v2
with:
app-name: 'acclabs-boards'
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
images: 'acclabdocker.azurecr.io/board:${{ env.IMAGE_TAG }}'