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