This commit is contained in:
2024-03-31 14:29:49 +02:00
parent 863bec1d62
commit 097b4108e5

View File

@@ -16,7 +16,7 @@ steps:
RELEASE_IMAGE_NAME: "docker.io/genunix/restic" RELEASE_IMAGE_NAME: "docker.io/genunix/restic"
commands: commands:
- | - |
RESTIC_VERSION=$$(grep RESTIC_VERSION Dockerfile|cut -d = -f 2) RESTIC_VERSION=$$(grep RESTIC_VERSION= Dockerfile|cut -d = -f 2)
podman login --username "$${REGISTRY_USERNAME}" --password "$${REGISTRY_PASSWORD}" "$${REGISTRY_SERVER}" podman login --username "$${REGISTRY_USERNAME}" --password "$${REGISTRY_PASSWORD}" "$${REGISTRY_SERVER}"
echo "== Building $${RELEASE_IMAGE_NAME}:$${DRONE_COMMIT_SHA}" echo "== Building $${RELEASE_IMAGE_NAME}:$${DRONE_COMMIT_SHA}"
podman build --platform linux/arm64/v8 --platform linux/amd64 --pull-always --format docker -t $${RELEASE_IMAGE_NAME}:$${DRONE_COMMIT_SHA} . podman build --platform linux/arm64/v8 --platform linux/amd64 --pull-always --format docker -t $${RELEASE_IMAGE_NAME}:$${DRONE_COMMIT_SHA} .