Skip to content

[nx-docker] How to use extracted metadata in cache-from configurations #328

Answered by roderik
roderik asked this question in Q&A
Discussion options

You must be logged in to vote

Foud an issue somewhere that mentions the config is pushed to the shell so bash/sh variables work

        "docker": {
          "executor": "@nx-tools/nx-docker:build",
          "options": {
            "file": "apps/cluster-manager/Dockerfile",
            "tags": [
              "ghcr.io/settlemint/bpaas-cluster-manager:${GITHUB_REF_SLUG}",
              "ghcr.io/settlemint/bpaas-cluster-manager:${GITHUB_REF_SLUG}-${GITHUB_SHA_SHORT}"
            ],
            "cache-from": [
              "ghcr.io/settlemint/bpaas-cluster-manager:${GITHUB_REF_SLUG}",
              "ghcr.io/settlemint/bpaas-cluster-manager:alpha"
            ],
            "cache-to": ["type=inline"],
            "pul…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by roderik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant