Using specific tags for building

Greetings, I’m currently trying to use specific tags/branches for building my Frappe Custom App.

Currently, this is how I’m currently building my custom image:


      - name: Build custom image
        run: |
          sudo docker build \
            --build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
            --build-arg=FRAPPE_BRANCH=version-16 \
            --build-arg=CACHE_BUST="$GITHUB_SHA" \
            --secret=id=apps_json,src=apps.json \
            --tag=${{ env.IMAGE_NAME }}:dev-${{ steps.vars.outputs.sha }} \
            --tag=${{ env.IMAGE_NAME }}:dev-latest \
            --file=images/layered/Containerfile .

However, I tried running the command using the flag --build-arg=FRAPPE_BRANCH=v16.34.2 (and 16.33.1) and whenever my Action ran, the job failed that tag is not available on either frappe/base and frappe/build when pulling the images from Docker Hub.

How can I assure that I can specify EXACTLY one tag so that it produces the same result always and I can avoid unexpected behavior? Is this a valid thing I’m trying to achieve or can Frappe assure that the images will produce the same result when running under the tag version-16

Hi @fer8hnndz and welcome to the community

The docker experts are available at GitHub - frappe/frappe_docker: Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development · GitHub

I believe you will get a better response there

Best of luck