From 6fbe53b4468358b637e7f9037caebdacd7206cc6 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 29 May 2023 15:31:01 +0200 Subject: [PATCH] Improve build system --- .woodpecker/.build-docker.yml | 5 +---- tests/alias.sh | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.woodpecker/.build-docker.yml b/.woodpecker/.build-docker.yml index 039a2a3f0..e8e5e34d8 100644 --- a/.woodpecker/.build-docker.yml +++ b/.woodpecker/.build-docker.yml @@ -38,10 +38,7 @@ pipeline: alias: image: docker:cli - secrets: [docker_username, docker_password] - environment: - - DUSER=${docker_username} - - DPASS=${docker_password} + secrets: [duser, dpass] commands: - tests/alias.sh when: diff --git a/tests/alias.sh b/tests/alias.sh index d4e270ad0..fdca04218 100755 --- a/tests/alias.sh +++ b/tests/alias.sh @@ -1,6 +1,6 @@ #!/bin/sh -e -docker login -p "$DUSER" -u "$DPASS" +docker login -p "$dpass" -u "$duser" docker pull danog/madelineproto:next-debian docker tag danog/madelineproto:next-debian danog/madelineproto:next docker push danog/madelineproto:next