fix: kaniko dockerfile path should be relative to context (#211)

Kaniko expects --dockerfile to be relative to --context, not an
absolute path. Changed from '/workspace/k8s/Dockerfile' to
'k8s/Dockerfile' since context is '/workspace'.

Reviewed-on: graham/towerops-web#211
This commit is contained in:
Graham McIntire 2026-03-28 16:02:23 -05:00 committed by graham
parent f326808d15
commit efc78c9185

View file

@ -122,7 +122,7 @@ jobs:
-v /tmp/kaniko:/kaniko/.docker \ -v /tmp/kaniko:/kaniko/.docker \
gcr.io/kaniko-project/executor:latest \ gcr.io/kaniko-project/executor:latest \
--context /workspace \ --context /workspace \
--dockerfile /workspace/k8s/Dockerfile \ --dockerfile k8s/Dockerfile \
--destination ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${IMAGE_TAG} \ --destination ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${IMAGE_TAG} \
--destination ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:production \ --destination ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:production \
--build-arg MIX_ENV=prod \ --build-arg MIX_ENV=prod \