-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (39 loc) · 1.24 KB
/
release.yml
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
name: Release
on:
push:
tags:
- 'v*.*.*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build-images:
runs-on: ubuntu-latest
strategy:
matrix:
image: [faabric, planner]
steps:
- name: "Get the code"
uses: actions/checkout@v4
- name: "Get tag version"
run: echo "TAG_VERSION=${GITHUB_REF#refs/tags/v*}" >> $GITHUB_ENV
- name: "Print tag version"
run: echo ${{ env.TAG_VERSION }}
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v3
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
- name: "Log in to ACR"
uses: docker/login-action@v3
with:
registry: faasm.azurecr.io
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
- name: "Build Faabric container"
uses: docker/[email protected]
with:
push: true
file: docker/${{ matrix.image }}.dockerfile
context: .
tags: faasm.azurecr.io/${{ matrix.image }}:${{ env.TAG_VERSION }}
build-args: FAABRIC_VERSION=${{ env.TAG_VERSION }}