From 8428a26fa56eeec6a48accf213d480fa0a41c780 Mon Sep 17 00:00:00 2001 From: Quentin Pismont Date: Thu, 10 Aug 2023 21:40:17 +0200 Subject: [PATCH] clean ci --- .woodpecker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index c73e8ec..d1f7601 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,9 +3,11 @@ steps: image: docker:cli commands: - version=$(cat version) + - tag="gitea.qpismont.fr/qpismont/portfolio:${version}" - docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}" - - docker build . --tag gitea.qpismont.fr/qpismont/portfolio:$version - - docker push gitea.qpismont.fr/qpismont/portfolio:$version + - docker build --rm --tag $tag . + - docker push $tag + - docker rmi $tag when: branch: ${CI_REPO_DEFAULT_BRANCH} event: push