From b1e2c8d30b24e7bc9a1802bff9894247e033bc5c Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 19 May 2024 12:35:18 -0300 Subject: [PATCH] Publish payload dev container also --- .drone.yml | 15 ++++++++++++++- docker-compose.yml | 2 +- package.json | 4 ++-- payload/Dockerfile | 1 - 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 289570a..57d35c1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,20 @@ steps: registry: git.autonomic.zone context: astro dockerfile: astro/Dockerfile - - name: publish payload container + - name: publish payload dev container + image: plugins/docker + settings: + username: 3wordchant + password: + from_secret: git_autonomic_zone_token_3wc + # NOTE: edit this if you want your image called something else + repo: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload-dev + auto_tag: true + registry: git.autonomic.zone + context: payload + dockerfile: payload/Dockerfile + target: dev + - name: publish payload prod container image: plugins/docker settings: username: 3wordchant diff --git a/docker-compose.yml b/docker-compose.yml index c14a422..89a56a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: - payload payload: - image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload:latest + image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload-dev:latest container_name: ${NAME}-payload restart: unless-stopped build: diff --git a/package.json b/package.json index c92cfd1..739ca0f 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "license": "AGPL-3.0-or-later", "version": "1.2", "scripts": { - "dev": "docker compose up", + "dev": "docker compose up --build", "stop": "docker compose down", - "dev:build": "docker compose up --build" + "dev:nobuild": "docker compose up" } } diff --git a/payload/Dockerfile b/payload/Dockerfile index fd29dfe..27fd6ab 100644 --- a/payload/Dockerfile +++ b/payload/Dockerfile @@ -9,7 +9,6 @@ ENV NODE_ENV=development EXPOSE 3001 CMD ["yarn","dev"] - FROM base AS build ENV NODE_ENV=production WORKDIR /build