Update .gitea/workflows/docker-build-and-push.yaml
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user