Build recursive submodules
This commit is contained in:
parent
48fa5c8d3b
commit
0f3a03c67e
@ -9,7 +9,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository with submodules
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Verify submodules
|
||||||
|
run: |
|
||||||
|
git submodule status
|
||||||
|
ls -la modules/db
|
||||||
|
|
||||||
- name: Login to Registry
|
- name: Login to Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@ -23,11 +31,13 @@ jobs:
|
|||||||
BRANCH_NAME: ${{ github.ref_name }}
|
BRANCH_NAME: ${{ github.ref_name }}
|
||||||
SHORT_HASH: ${{ github.sha }}
|
SHORT_HASH: ${{ github.sha }}
|
||||||
run: |
|
run: |
|
||||||
# Build the image with the commit hash tag
|
docker build \
|
||||||
docker build --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} -t gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} .
|
--build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} \
|
||||||
|
-t gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} .
|
||||||
|
|
||||||
# Tag the same image as "latest"
|
docker tag \
|
||||||
docker tag gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-latest
|
gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} \
|
||||||
|
gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-latest
|
||||||
|
|
||||||
- name: Push Docker Image
|
- name: Push Docker Image
|
||||||
env:
|
env:
|
||||||
@ -39,4 +49,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Log out from registry
|
- name: Log out from registry
|
||||||
if: always()
|
if: always()
|
||||||
run: docker logout gitea.spilum.net
|
run: docker logout gitea.spilum.net
|
||||||
Loading…
Reference in New Issue
Block a user