-
Notifications
You must be signed in to change notification settings - Fork 53
69 lines (67 loc) · 2.05 KB
/
release.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
58
59
60
61
62
63
64
65
66
67
68
69
name: Release
on:
push:
branches:
- master
paths:
- '**/envconfig.json**'
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
outputs:
versions_to_be_released: ${{ steps.release_env.outputs.versions_to_be_released }}
release_needed: ${{ steps.release_env.outputs.release_needed }}
steps:
- name: Checkout the current repo
uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: .github/workflows/filters/version_filter.yaml
- name: Filter Environments to be released
id: release_env
run: |
python3 hack/release_check.py ${{ steps.filter.outputs.changes }}
docker-buildx-push:
if: ${{ needs.check.outputs.release_needed == 'True' }}
needs: check
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.check.outputs.versions_to_be_released) }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
version: latest
use: 'true'
buildkitd-flags: --debug
- name: Login to ghcr.io
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger Release
run: |
make verify-builder
cd ${{ matrix.env }}
TAG=${{ matrix.tag }} make ${{ matrix.image }}-img
if [ "${{ matrix.builder}}" != "" ]
then
pushd builder
TAG=${{ matrix.tag }} make ${{ matrix.builder }}-img
popd
fi
TAG=latest make ${{ matrix.image }}-img
if [ "${{ matrix.builder}}" != "" ]
then
pushd builder
TAG=latest make ${{ matrix.builder }}-img
popd
fi