generated from autonomic-cooperative/astro-payload-template
Publish payload dev container also
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
7d2f0822fa
commit
b1e2c8d30b
15
.drone.yml
15
.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
|
||||
|
@ -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:
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ ENV NODE_ENV=development
|
||||
EXPOSE 3001
|
||||
CMD ["yarn","dev"]
|
||||
|
||||
|
||||
FROM base AS build
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /build
|
||||
|
Loading…
Reference in New Issue
Block a user