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 1111jobs :
1212 build :
1313 runs-on : ubuntu-latest
14-
1514 steps :
1615 - name : Checkout
1716 uses : actions/checkout@v3
1817 with :
1918 submodules : recursive
20-
19+ fetch-depth : 1
2120 - name : Set up Docker Buildx
2221 uses : docker/setup-buildx-action@v3
23-
2422 - name : Login to Docker Hub
2523 uses : docker/login-action@v3
2624 with :
2725 username : " jadit19"
2826 password : ${{ secrets.DOCKER_TOKEN }}
29-
3027 - name : Extract version
3128 id : extract_version
3229 run : |
3330 MAJOR_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_MAJOR )\d+' include/expresso/version.h)
3431 MINOR_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_MINOR )\d+' include/expresso/version.h)
3532 PATCH_VERSION=$(grep -oP '(?<=#define EXPRESSO_VERSION_PATCH )\d+' include/expresso/version.h)
3633 echo "VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION" >> $GITHUB_ENV
37-
3834 - name : Build and push
3935 run : |
4036 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 1717 uses : actions/checkout@v3
1818 with :
1919 submodules : recursive
20+ fetch-depth : 1
2021 - name : Update and Install dependencies
2122 run : |
2223 sudo apt-get update
Original file line number Diff line number Diff line change 2020 uses : actions/checkout@v3
2121 with :
2222 submodules : recursive
23+ fetch-depth : 1
2324 - name : Extract version from version.h
2425 id : extract_version_h_version
2526 run : |
You can’t perform that action at this time.
0 commit comments