From a68ac8390583c4b5066f5d519b89b8ca0b39cf8c Mon Sep 17 00:00:00 2001 From: Quentin Pismont Date: Thu, 10 Aug 2023 21:08:44 +0200 Subject: [PATCH] test docker --- .woodpecker.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 148628c..35a9164 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,14 +1,13 @@ steps: publish-docker: - image: woodpeckerci/plugin-docker-buildx - settings: - label: gitea.qpismont.fr/qpismont/portfolio - repo: gitea.qpismont.fr/qpismont/portfolio - tag: latest - username: - from_secret: docker_username - password: - from_secret: docker_password + image: docker:cli + commands: + - docker login gitea.qpismont.fr -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" + - docker build . --tag gitea.qpismont.fr/qpismont/portfolio:latest + - docker push gitea.qpismont.fr/qpismont/portfolio:latest when: branch: ${CI_REPO_DEFAULT_BRANCH} - event: push \ No newline at end of file + event: push + volumes: + - /var/run/docker.sock:/var/run/docker.sock + secrets: [docker_username, docker_password] \ No newline at end of file