Publish payload dev container also
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
3wc 2024-05-19 12:35:18 -03:00
parent 7d2f0822fa
commit b1e2c8d30b
4 changed files with 17 additions and 5 deletions

View File

@ -14,7 +14,20 @@ steps:
registry: git.autonomic.zone registry: git.autonomic.zone
context: astro context: astro
dockerfile: astro/Dockerfile 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 image: plugins/docker
settings: settings:
username: 3wordchant username: 3wordchant

View File

@ -19,7 +19,7 @@ services:
- payload - payload
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 container_name: ${NAME}-payload
restart: unless-stopped restart: unless-stopped
build: build:

View File

@ -4,8 +4,8 @@
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"version": "1.2", "version": "1.2",
"scripts": { "scripts": {
"dev": "docker compose up", "dev": "docker compose up --build",
"stop": "docker compose down", "stop": "docker compose down",
"dev:build": "docker compose up --build" "dev:nobuild": "docker compose up"
} }
} }

View File

@ -9,7 +9,6 @@ ENV NODE_ENV=development
EXPOSE 3001 EXPOSE 3001
CMD ["yarn","dev"] CMD ["yarn","dev"]
FROM base AS build FROM base AS build
ENV NODE_ENV=production ENV NODE_ENV=production
WORKDIR /build WORKDIR /build