From cff045b6655eb231f61b018f2ec05251888d81a2 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Fri, 30 Aug 2024 15:39:04 +0200 Subject: [PATCH] build: also push to docker hub --- .drone.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index cddb4eb..0f0c0f6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -72,6 +72,11 @@ steps: - name: push image: quay.io/buildah/stable privileged: true + environment: + USERNAME: + from_secret: username + PASSWORD: + from_secret: password volumes: - name: fedhq-ca-crt path: /etc/ssl/certs2/ @@ -79,7 +84,26 @@ steps: - scripts/setupEnvironment.sh - buildah manifest create registry.cloud.federationhq.de/netcat:latest registry.cloud.federationhq.de/netcat:latest-arm64 registry.cloud.federationhq.de/netcat:latest-amd64 - buildah manifest push registry.cloud.federationhq.de/netcat:latest docker://registry.cloud.federationhq.de/netcat:latest + - buildah login -u $${USERNAME} -p $${PASSWORD} registry.hub.docker.com + - buildah manifest push --all netcat:latest docker://registry.hub.docker.com/byterazor/netcat:latest - buildah manifest rm registry.cloud.federationhq.de/netcat:latest depends_on: - build-amd64 - - build-arm64 \ No newline at end of file + - build-arm64 + + + + +--- +kind: secret +name: username +get: + path: docker + name: username + +--- +kind: secret +name: password +get: + path: docker + name: secret \ No newline at end of file