File tree Expand file tree Collapse file tree 3 files changed +11
-41
lines changed Expand file tree Collapse file tree 3 files changed +11
-41
lines changed Original file line number Diff line number Diff line change 13
13
workflow_dispatch :
14
14
15
15
jobs :
16
- extract-vars :
17
- uses : hotosm/gh-workflows/.github/workflows/py_app_version.yml@main
18
- with :
19
- package_name : osm_rawdata
20
-
21
16
backend-ci-build :
22
17
uses : hotosm/gh-workflows/.github/workflows/image_build.yml@main
23
- needs : [extract-vars]
24
18
with :
25
19
build_target : ci
26
20
image_tags : |
27
- "ghcr.io/hotosm/osm-rawdata:${{ needs.extract-vars.outputs.app_version }}-ci"
28
21
"ghcr.io/hotosm/osm-rawdata:ci"
29
22
build_args : |
30
- PKG_VERSION =${{ needs.extract-vars.outputs.app_version }}
23
+ COMMIT_REF =${{ github.sha }}
Original file line number Diff line number Diff line change 1
1
name : Build
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ push :
5
+ tags :
6
+ - " *"
6
7
# Allow manual trigger
7
8
workflow_dispatch :
8
9
9
10
jobs :
10
- extract-vars :
11
- uses : hotosm/gh-workflows/.github/workflows/py_app_version.yml@main
12
- with :
13
- package_name : osm_rawdata
14
-
15
- backend-ci-build :
11
+ ci-build :
16
12
uses : hotosm/gh-workflows/.github/workflows/image_build.yml@main
17
- needs : [extract-vars]
18
13
with :
19
14
build_target : prod
20
- image_tags : |
21
- "ghcr.io/hotosm/osm-rawdata:${{ needs.extract-vars.outputs.app_version }}"
22
- "ghcr.io/hotosm/osm-rawdata:latest"
15
+ image_name : " ghcr.io/${{ github.repository }}"
23
16
build_args : |
24
- PKG_VERSION =${{ needs.extract-vars.outputs.app_version }}
17
+ COMMIT_REF =${{ github.sha }}
Original file line number Diff line number Diff line change 11
11
workflow_dispatch :
12
12
13
13
jobs :
14
- get_cache_key :
15
- runs-on : ubuntu-latest
16
- outputs :
17
- cache_key : ${{ steps.set_cache_key.outputs.cache_key }}
18
- steps :
19
- - name : Set cache key
20
- id : set_cache_key
21
- run : echo "cache_key=docs-build-$(date --utc +'%Y-%m-%d_%H:%M:%S')" >> $GITHUB_OUTPUT
22
-
23
14
build_doxygen :
24
15
uses : hotosm/gh-workflows/.github/workflows/doxygen_build.yml@main
25
- needs : [get_cache_key]
26
16
with :
27
- cache_paths : |
28
- docs/apidocs
29
- cache_key : ${{ needs.get_cache_key.outputs.cache_key }}
17
+ output_path : docs/apidocs
30
18
31
19
publish_docs :
32
20
uses : hotosm/gh-workflows/.github/workflows/mkdocs_build.yml@main
33
- needs :
34
- - get_cache_key
35
- - build_doxygen
21
+ needs : [build_doxygen]
36
22
with :
37
- image : ghcr.io/hotosm/osm-rawdata:ci
38
- cache_paths : |
39
- docs/apidocs
40
- cache_key : ${{ needs.get_cache_key.outputs.cache_key }}
23
+ image : ghcr.io/${{ github.repository }}:ci
24
+ doxygen : true
You can’t perform that action at this time.
0 commit comments