Skip to content

Commit

Permalink
removed debugging echo, added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-longva-bouvet committed Aug 28, 2023
1 parent d4512c5 commit 3804109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion buildah-image-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM quay.io/buildah/stable:v1.30.0
COPY cmd.sh /
CMD /cmd.sh
CMD /cmd.sh
# TODO: mark git dir as safe for edit
10 changes: 2 additions & 8 deletions buildah-image-builder/cmd.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
#!/bin/bash
set -e
buildah login --username ${BUILDAH_USERNAME} --password ${BUILDAH_PASSWORD} ${DOCKER_REGISTRY}.azurecr.io
#debug line below
echo buildah build --storage-driver=vfs --isolation=chroot --jobs 0 \
${SECRET_ARGS} --file ${CONTEXT}${DOCKER_FILE_NAME} \
--tag ${IMAGE} \
--tag ${CLUSTERTYPE_IMAGE} \
--tag ${CLUSTERNAME_IMAGE} \
${CONTEXT}
buildah build --storage-driver=vfs --isolation=chroot --jobs 0 \
${SECRET_ARGS} --file ${CONTEXT}${DOCKER_FILE_NAME} \
--tag ${IMAGE} \
--tag ${CLUSTERTYPE_IMAGE} \
--tag ${CLUSTERNAME_IMAGE} \
${CONTEXT}
buildah push --storage-driver=vfs --all ${IMAGE}
buildah push --storage-driver=vfs --all ${IMAGE}
# TODO: reset to correct git commit hash

0 comments on commit 3804109

Please sign in to comment.