From ccacd9dbf32f7003013c71813fee97018e0cd7e0 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 30 Aug 2024 17:11:37 +0800 Subject: [PATCH] Update image used for CI/CD --- .woodpecker.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3d3fe09..079511d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,17 +1,18 @@ # .woodpecker.yml steps: - - name: build & push - image: debian:12.6-slim + - name: build-push + image: docker when: - branch: master - event: push commands: - - apt update && apt install -y docker - docker build . -t git.keannu1.duckdns.org/keannu125/drf_template - cat "$GITEA_PASSWORD" | docker login git.keannu1.duckdns.org --username "$GITEA_USERNAME" --pasword-stdin - docker push git.keannu1.duckdns.org/keannu125/drf_template + volumes: + - /var/run/docker.sock:/var/run/docker.sock - name: update deployment and reset database - image: debian:12.6-slim + image: docker when: - branch: master - event: push @@ -27,4 +28,6 @@ steps: docker volume rm git.keannu1.duckdns.org/keannu125/drf_template_db_data; docker compose up -d' - scp -r dist/* root@10.0.10.4:/mnt/nvme/www/equipment_tracker_frontend + volumes: + - /var/run/docker.sock:/var/run/docker.sock secrets: [SSH_KEY, REGISTRY_USERNAME, REGISTRY_PASSWORD]