File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
-
15
14
steps :
16
15
- name : Checkout
17
16
uses : actions/checkout@v3
18
17
with :
19
18
submodules : recursive
20
-
19
+ fetch-depth : 1
21
20
- name : Set up Docker Buildx
22
21
uses : docker/setup-buildx-action@v3
23
-
24
22
- name : Login to Docker Hub
25
23
uses : docker/login-action@v3
26
24
with :
27
25
username : " jadit19"
28
26
password : ${{ secrets.DOCKER_TOKEN }}
29
-
30
27
- name : Extract version
31
28
id : extract_version
32
29
run : |
33
30
MAJOR_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_MAJOR )\d+' include/expresso/version.h)
34
31
MINOR_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_MINOR )\d+' include/expresso/version.h)
35
32
PATCH_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_PATCH )\d+' include/expresso/version.h)
36
33
echo "VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION" >> $GITHUB_ENV
37
-
38
34
- name : Build and push
39
35
run : |
40
36
docker buildx build --platform linux/amd64,linux/arm/v7 -t jadit19/expresso:latest -t jadit19/expresso:${{ env.VERSION }} -f docker/build.dockerfile --push .
Original file line number Diff line number Diff line change 17
17
uses : actions/checkout@v3
18
18
with :
19
19
submodules : recursive
20
+ fetch-depth : 1
20
21
- name : Update and Install dependencies
21
22
run : |
22
23
sudo apt-get update
Original file line number Diff line number Diff line change 20
20
uses : actions/checkout@v3
21
21
with :
22
22
submodules : recursive
23
+ fetch-depth : 1
23
24
- name : Extract version from version.h
24
25
id : extract_version_h_version
25
26
run : |
You can’t perform that action at this time.
0 commit comments