mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-15 19:58:28 +00:00
Get rid of hello-world image, 1/2 (#924)
* Use our image for pull test. * Add 386 versions of the images.
This commit is contained in:
parent
4277b60340
commit
f9461bb441
@ -13,7 +13,7 @@ IMAGE_NAME="${1:-localhost/$(basename "$(pwd)"):latest}"
|
|||||||
podman manifest rm "${IMAGE_NAME}" || true
|
podman manifest rm "${IMAGE_NAME}" || true
|
||||||
podman image rm "${IMAGE_NAME}" || true
|
podman image rm "${IMAGE_NAME}" || true
|
||||||
buildah manifest create "${IMAGE_NAME}"
|
buildah manifest create "${IMAGE_NAME}"
|
||||||
for ARCH in amd64 arm64; do
|
for ARCH in amd64 arm64 386; do
|
||||||
rm -f "main-${ARCH}"
|
rm -f "main-${ARCH}"
|
||||||
GOARCH="${ARCH}" go build -ldflags "-s -w" -o "main-${ARCH}" main.go
|
GOARCH="${ARCH}" go build -ldflags "-s -w" -o "main-${ARCH}" main.go
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ IMAGE_NAME="${1:-localhost/$(basename "$(pwd)"):latest}"
|
|||||||
podman manifest rm "${IMAGE_NAME}" || true
|
podman manifest rm "${IMAGE_NAME}" || true
|
||||||
podman image rm "${IMAGE_NAME}" || true
|
podman image rm "${IMAGE_NAME}" || true
|
||||||
buildah manifest create "${IMAGE_NAME}"
|
buildah manifest create "${IMAGE_NAME}"
|
||||||
for ARCH in amd64 arm64; do
|
for ARCH in amd64 arm64 386; do
|
||||||
for PROGRAM in ${PROGRAMS}; do
|
for PROGRAM in ${PROGRAMS}; do
|
||||||
rm -f "${PROGRAM}-${ARCH}"
|
rm -f "${PROGRAM}-${ARCH}"
|
||||||
GOARCH="${ARCH}" go build -ldflags "-s -w" -o "${PROGRAM}-${ARCH}" "${PROGRAM}.go"
|
GOARCH="${ARCH}" go build -ldflags "-s -w" -o "${PROGRAM}-${ARCH}" "${PROGRAM}.go"
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
- name: Basic pull tests
|
- name: Basic pull tests
|
||||||
vars:
|
vars:
|
||||||
image_name: "{{ docker_test_image_hello_world_platform }}"
|
image_name: "{{ docker_test_image_simple_1 }}"
|
||||||
block:
|
block:
|
||||||
- name: Make sure image is not there
|
- name: Make sure image is not there
|
||||||
docker_image_remove:
|
docker_image_remove:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user