From d90a45334223b36258804fd9b194f164a81d28e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:56:59 -0500 Subject: [PATCH] test avec woodpecker --- .woodpecker.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 299e2ef..6cb5cd2 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -3,13 +3,8 @@ steps: image: plugins/docker commands: - docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD} - secrets: [ dockerhub_username, dockerhub_password ] - - name: publish - image: plugins/docker - settings: - repo: franc00018/point-median-backend - registry: https://index.docker.io/v1/ - tags: latest - username: $${DOCKERHUB_USERNAME} - password: $${DOCKERHUB_PASSWORD} + - export TAG=$(openssl rand -hex 8) + - docker build --rm=true -f Dockerfile -t $TAG + - docker tag $TAG $${DOCKERHUB_USERNAME}/point-median-backend:latest + - docker push $${DOCKERHUB_USERNAME}/point-median-backend:latest secrets: [ dockerhub_username, dockerhub_password ]