Build recursive submodules
This commit is contained in:
parent
48fa5c8d3b
commit
0f3a03c67e
@ -9,7 +9,15 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
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
|
||||
uses: docker/login-action@v2
|
||||
@ -23,11 +31,13 @@ jobs:
|
||||
BRANCH_NAME: ${{ github.ref_name }}
|
||||
SHORT_HASH: ${{ github.sha }}
|
||||
run: |
|
||||
# Build the image with the commit hash tag
|
||||
docker build --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} -t gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} .
|
||||
docker build \
|
||||
--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 gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-latest
|
||||
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
|
||||
|
||||
- name: Push Docker Image
|
||||
env:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user