diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c40177bb..a82eb935 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -152,12 +152,13 @@ jobs: name: Build Docker images run: |- docker build --target builder \ - --no-cache\ + --cache-from=$PREVIOUS_IMAGE_NAME-builder \ --build-arg GITHUB_PAT=$GITHUB_PAT \ --tag $IMAGE_NAME-builder . docker build --target prod \ - --no-cache\ + --cache-from=$IMAGE_NAME-builder \ + --cache-from=$PREVIOUS_IMAGE_NAME \ --build-arg GITHUB_PAT=$GITHUB_PAT \ --tag $IMAGE_NAME . env: diff --git a/chart-infra/templates/pipeline-spawn-right-to-api.yaml b/chart-infra/templates/pipeline-spawn-right-to-api.yaml index fdff7604..e3d0b460 100644 --- a/chart-infra/templates/pipeline-spawn-right-to-api.yaml +++ b/chart-infra/templates/pipeline-spawn-right-to-api.yaml @@ -10,7 +10,7 @@ rules: resources: ["pods"] verbs: ["get", "list", "patch", "delete"] --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: api-state-machine-can-spawn-pipeline-components @@ -27,4 +27,4 @@ subjects: namespace: {{ regexReplaceAll "^pipeline-" .Release.Namespace "api-" }} - kind: Group apiGroup: rbac.authorization.k8s.io - name: state-machine-runner-group \ No newline at end of file + name: state-machine-runner-group