diff --git a/.gitea/workflows/docker-build-and-push.yaml b/.gitea/workflows/docker-build-and-push.yaml index c7f2253..480684f 100644 --- a/.gitea/workflows/docker-build-and-push.yaml +++ b/.gitea/workflows/docker-build-and-push.yaml @@ -27,12 +27,6 @@ jobs: image: catthehacker/ubuntu:act-22.04 steps: - - - name: Checkout code - uses: actions/checkout@v3 - with: - submodules: recursive - fetch-depth: 0 - name: Import Secrets uses: hashicorp/vault-action@v2 @@ -42,6 +36,14 @@ jobs: secrets: | cicd/data/docker password | REGISTRY_PASSWORD ; cicd/data/docker username | REGISTRY_USERNAME ; + cicd/data/submodule token | SUBMODULE_TOKEN ; + + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + token: ${{ env.SUBMODULE_TOKEN }} - name: Set up Docker BuildX uses: docker/setup-buildx-action@v2