From 85ba73c82b30770333c1f562ef6512dd305cfd4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:56:35 -0500 Subject: [PATCH] ajout woodpecker --- .woodpecker.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ .woodpecker.yaml b/ .woodpecker.yaml index 22b68c3..36850f1 100644 --- a/ .woodpecker.yaml +++ b/ .woodpecker.yaml @@ -3,9 +3,9 @@ steps: image: plugins/docker commands: - docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD} - - docker build --rm=true -f Dockerfile -t $${CI_COMMIT_TAG} . - - docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:$${CI_COMMIT_TAG} - - docker tag $${CI_COMMIT_TAG} $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:latest + - docker build --rm=true -f Dockerfile -t $${CI_COMMIT_REF} . + - docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:$${CI_COMMIT_REF} + - docker tag $${CI_COMMIT_REF} $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:latest - docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:latest secrets: [ dockerhub_username, dockerhub_password ] volumes: