-
Notifications
You must be signed in to change notification settings - Fork 27
81 lines (77 loc) · 2.93 KB
/
release_artifacts.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
70
71
72
73
74
75
76
77
78
79
80
81
name: 'Create release artifacts'
on:
workflow_dispatch:
inputs:
os:
type: choice
default: 'debian-11'
description: "Operating system to build the image for"
required: true
options:
- "debian-11"
mage_version:
type: string
description: "Mage version built into this image (format: X.Y.Z)"
required: true
memgraph_version:
type: string
description: "Memgraph version built into this image (format: X.Y.Z)"
required: true
official_memgraph:
type: boolean
description: "Use the official Memgraph bucket?"
default: false
jobs:
SetupNames:
runs-on: ubuntu-latest
outputs:
download_link_base: ${{ steps.base_link.outputs.link }}
dowlnoad_binary_name_base: ${{ steps.binary_name.outputs.name }}
env:
s3_link_base: ${{ github.event.inputs.official_memgraph == 'true' && 'https://' || 'https://s3.eu-west-1.amazonaws.com' }}
s3_bucket: ${{ github.event.inputs.official_memgraph == 'true' && 'download.memgraph.com' || 'deps.memgraph.io' }}
steps:
- name: Set base memgraph download link
id: base_link
run: |
echo "link=${{ env.s3_link_base }}/${{ env.s3_bucket }}/memgraph/v${{ github.event.inputs.memgraph_version }}/${{ github.event.inputs.os }}" >> $GITHUB_OUTPUT
- name: Set binary name base
id: binary_name
run: |
version=${{ github.event.inputs.memgraph_version }}
echo "name=memgraph_${version%%-*}-1" >> $GITHUB_OUTPUT
Artifact:
needs: [SetupNames]
strategy:
fail-fast: false
matrix:
build_target: ["prod", "dev"]
build_scope: ["with ML", "without ML"]
build_type: ["Release", "RelWithDebInfo"]
build_arch: ["amd", "arm"]
include:
- build_type: "RelWithDebInfo"
rwid_ext: "-rwdi"
- build_arch: "arm"
arm_ext: "-aarch64"
exclude:
- build_target: "dev"
build_scope: "without ML"
- build_target: "dev"
build_type: "Release"
uses: ./.github/workflows/reusable_package_mage.yaml
with:
arch: "${{ matrix.build_arch }}"
mage_version: "${{ github.event.inputs.mage_version }}"
mage_build_scope: "${{ matrix.build_scope }}"
mage_build_target: "${{ matrix.build_target }}"
mage_build_type: "${{ matrix.build_type }}"
memgraph_version: "${{ github.event.inputs.memgraph_version }}"
memgraph_download_link: "${{ needs.SetupNames.outputs.download_link_base }}${{ matrix.rwid_ext }}${{ matrix.arm_ext }}/${{ needs.SetupNames.outputs.dowlnoad_binary_name_base }}_${{ matrix.build_arch }}64.deb"
shorten_tag: "true"
force_release: "true"
push_to_dockerhub: "false"
push_to_s3: "true"
s3_dest_bucket: "deps.memgraph.io"
s3_dest_dir: "mage/v${{ github.event.inputs.mage_version}}"
secrets: inherit