@@ -3,22 +3,23 @@ name: Build Airflow
3
3
4
4
env :
5
5
PRODUCT_NAME : airflow
6
+ SDP_VERSION : ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6
7
7
8
on :
8
9
workflow_dispatch :
9
10
schedule :
10
11
- cron : ' 0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
11
12
push :
12
- branches :
13
- - main
13
+ branches : [main]
14
+ tags : ['*']
14
15
paths :
15
16
# To check dependencies, run this ( you will need to consider transitive dependencies)
16
17
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
17
18
- airflow/**
18
19
- vector/**
19
20
- stackable-base/**
20
21
- .github/actions/**
21
- - .github/workflows/dev_airflow .yaml
22
+ - .github/workflows/build_airflow .yaml
22
23
23
24
jobs :
24
25
generate_matrix :
27
28
steps :
28
29
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
29
30
- id : shard
30
- uses : stackabletech/actions/shard@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
31
+ uses : stackabletech/actions/shard@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
31
32
with :
32
33
product-name : ${{ env.PRODUCT_NAME }}
33
34
outputs :
@@ -50,18 +51,19 @@ jobs:
50
51
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
51
52
52
53
- name : Free Disk Space
53
- uses : stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
54
+ uses : stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
54
55
55
56
- name : Build Product Image
56
57
id : build
57
- uses : stackabletech/actions/build-product-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
58
+ uses : stackabletech/actions/build-product-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
58
59
with :
59
60
product-name : ${{ env.PRODUCT_NAME }}
60
61
product-version : ${{ matrix.versions }}
61
62
build-cache-password : ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
63
+ sdp-version : ${{ env.SDP_VERSION }}
62
64
63
65
- name : Publish Container Image on docker.stackable.tech
64
- uses : stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
66
+ uses : stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
65
67
with :
66
68
image-registry-uri : docker.stackable.tech
67
69
image-registry-username : github
71
73
source-image-uri : localhost/${{ env.PRODUCT_NAME }}:${{ steps.build.outputs.image-manifest-tag }}
72
74
73
75
- name : Publish Container Image on oci.stackable.tech
74
- uses : stackabletech/actions/publish-image@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
76
+ uses : stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
75
77
with :
76
78
image-registry-uri : oci.stackable.tech
77
79
image-registry-username : robot$sdp+github-action-build
94
96
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
95
97
96
98
- name : Free Disk Space
97
- uses : stackabletech/actions/free-disk-space@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
99
+ uses : stackabletech/actions/free-disk-space@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
98
100
- name : Publish and Sign Image Index Manifest to docker.stackable.tech
99
- uses : stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
101
+ uses : stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
100
102
with :
101
103
image-registry-uri : docker.stackable.tech
102
104
image-registry-username : github
@@ -105,7 +107,7 @@ jobs:
105
107
image-index-manifest-tag : ${{ matrix.versions }}-stackable0.0.0-dev
106
108
107
109
- name : Publish and Sign Image Index Manifest to oci.stackable.tech
108
- uses : stackabletech/actions/publish-index-manifest@fe921a914283975f3be1f5f47348467a94276d41 # 0.1 .0
110
+ uses : stackabletech/actions/publish-index-manifest@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2 .0
109
111
with :
110
112
image-registry-uri : oci.stackable.tech
111
113
image-registry-username : robot$sdp+github-action-build
0 commit comments