Skip to content

Commit 502db8d

Browse files
committed
đźš§ Work in progress: Make pipeline use the image as resource to make testing easier!
1 parent 217b9c0 commit 502db8d

File tree

8 files changed

+94
-40
lines changed

8 files changed

+94
-40
lines changed

‎ci/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ ENV \
3535

3636
# 🚧 To-do: Check if “ENTRYPOINT” is not the better alternative, see:
3737
# <https://www.bmc.com/blogs/docker-cmd-vs-entrypoint>
38-
ENTRYPOINT ["devbox", "shell"]
38+
ENTRYPOINT ["devbox", "run", "--"]
3939
# CMD ["devbox", "shell"]

‎ci/Makefile‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@ docker-login:
4444
fi
4545

4646
oci-image-location := ${repository-root}/build/app-autoscaler-release-tools.tar.zst
47-
.PHONY: docker-image
47+
.PHONY: oci-image docker-image
48+
oci-image: ${oci-image-location}
4849
docker-image: ${oci-image-location}
4950

5051
${oci-image-location}: ./Makefile Dockerfile ${development-environment-definition}
5152
@readonly image_tag='${DOCKER_REGISTRY}/${DOCKER_REPOSITORY}:latest'
5253
docker build --file='./Dockerfile' '${repository-root}' --tag="$${image_tag}"
5354
docker image save "$${image_tag}" | zstd > '${oci-image-location}'
5455

55-
.PHONY: docker-image-push
56-
docker-image-push: docker-login docker-image
56+
.PHONY: oci-release-%
57+
oci-release-%: docker-login docker-image
5758
@ARTIFACT='${DOCKER_REGISTRY}/${DOCKER_REPOSITORY}:$*'
5859
echo "Uploading image" "$${ARTIFACT}"
5960
docker push "$${ARTIFACT}"

0 commit comments

Comments
 (0)