From fc1daad94bc4c02e8929ca794be5e6dde40f41bf Mon Sep 17 00:00:00 2001 From: qpismont Date: Mon, 27 May 2024 19:01:57 +0200 Subject: [PATCH] update publish job --- .woodpecker.yml | 13 ++++++------- version | 1 - 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 version diff --git a/.woodpecker.yml b/.woodpecker.yml index a18eac5..3927442 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,16 +1,15 @@ +when: + - event: [tag] + steps: publish-docker: - image: docker:cli + image: docker:26-cli commands: - - version=$(cat version) - - tag="gitea.qpismont.fr/qpismont/portfolio:$version" - - docker login gitea.qpismont.fr -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}" + - tag="tintounn/trepa:$${CI_COMMIT_TAG}" + - docker login -u="$${DOCKER_USERNAME}" -p="$${DOCKER_PASSWORD}" - docker build --rm --tag $tag . - docker push $tag - docker rmi $tag - when: - branch: ${CI_REPO_DEFAULT_BRANCH} - event: push volumes: - /var/run/docker.sock:/var/run/docker.sock secrets: [docker_username, docker_password] \ No newline at end of file diff --git a/version b/version deleted file mode 100644 index b123147..0000000 --- a/version +++ /dev/null @@ -1 +0,0 @@ -1.1 \ No newline at end of file