Update .gitea/workflows/docker-build-and-push.yaml

This commit is contained in:
2025-10-31 08:09:17 +00:00
parent 2a7a286842
commit f2e1c2198c

View File

@@ -37,6 +37,7 @@ jobs:
cicd/data/docker password | REGISTRY_PASSWORD ;
cicd/data/docker username | REGISTRY_USERNAME ;
cicd/data/submodule token | SUBMODULE_TOKEN ;
cicd/data/submodule npm_token | NPM_TOKEN ;
- name: Checkout code
uses: actions/checkout@v4
@@ -73,8 +74,12 @@ jobs:
- name: Build Docker image
run: |
docker build -f ${{ inputs.DOCKERFILE_PATH }} -t ${{ inputs.REGISTRY }}/${{ inputs.USER_FOR_IMAGE_STORE }}/${{ inputs.APP_NAME }}:${{ env.VERSION }} .
docker build \
--build-arg SUBMODULE_TOKEN=${{ env.NPM_TOKEN }} \
-f ${{ inputs.DOCKERFILE_PATH }} \
-t ${{ inputs.REGISTRY }}/${{ inputs.USER_FOR_IMAGE_STORE }}/${{ inputs.APP_NAME }}:${{ env.VERSION }} \
.
- name: Push Docker image
run: |
docker push ${{ inputs.REGISTRY }}/${{ inputs.USER_FOR_IMAGE_STORE }}/${{ inputs.APP_NAME }}:${{ env.VERSION }}