File tree 2 files changed +8
-16
lines changed
2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# Deploys on version tag beginning v. Note there's a branch filter
9
9
# below, locks to the dev branch
10
- tags :
11
- - v*
10
+ branches :
11
+ dev
12
12
13
13
permissions :
14
14
contents : read
19
19
20
20
deploy :
21
21
22
- # This doesn't work on tag pushes, so at the moment, all tags deploy
23
- # to dev
24
-
25
- # Only fires on the dev branch
26
- # if: github.ref == 'refs/heads/dev'
27
-
28
22
name : Deploy to dev
29
23
runs-on : ubuntu-latest
30
24
@@ -35,14 +29,14 @@ jobs:
35
29
36
30
- name : Get version
37
31
id : version
38
- run : echo VERSION=$(git describe --exact-match --tags | sed 's/^v//' ) >> $GITHUB_OUTPUT
32
+ run : echo VERSION=sha- $(git rev-parse --short HEAD ) >> $GITHUB_OUTPUT
39
33
40
34
- name : Install deps
41
35
run : npm install
42
36
37
+ #
43
38
- name : Build container
44
- run : make VERSION=${{ steps.version.outputs.VERSION }}
45
-
39
+ run : make PACKAGE_VERSION=0.0.0 VERSION=${{ steps.version.outputs.VERSION }}
46
40
- id : auth
47
41
name : Authenticate with Google Cloud
48
42
uses : google-github-actions/auth@v2
Original file line number Diff line number Diff line change 1
1
2
- VERSION =0.4.9
2
+ PACKAGE_VERSION =0.0.0
3
+ VERSION =0.0.0
3
4
4
5
all : service-package container
5
6
6
- version :
7
- @echo VERSION=${VERSION}
8
-
9
7
ui :
10
8
npm run build
11
9
rm -rf config-ui/config_ui/ui/
@@ -27,7 +25,7 @@ service-package: ui template-data resources-data update-package-versions
27
25
cd config-ui && python3 setup.py sdist --dist-dir ../pkgs/
28
26
29
27
update-package-versions :
30
- echo __version__ = \" ${VERSION } \" > config-ui/config_ui/version.py
28
+ echo __version__ = \" ${PACKAGE_VERSION } \" > config-ui/config_ui/version.py
31
29
32
30
CONTAINER =localhost/config-ui
33
31
DOCKER =podman
You can’t perform that action at this time.
0 commit comments