mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
(nextjs) added build step for master
This commit is contained in:
parent
bcaa9fde39
commit
6a4ed3fd2a
1 changed files with 54 additions and 54 deletions
80
.drone.yml
80
.drone.yml
|
@ -7,35 +7,35 @@ platform:
|
|||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: restore-cache-with-filesystem
|
||||
image: meltwater/drone-cache:dev
|
||||
when:
|
||||
branch:
|
||||
- develop
|
||||
pull: true
|
||||
settings:
|
||||
backend: "filesystem"
|
||||
restore: true
|
||||
cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
||||
archive_format: "gzip"
|
||||
mount:
|
||||
- '/app'
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /tmp/cache
|
||||
# - name: restore-cache-with-filesystem
|
||||
# image: meltwater/drone-cache:dev
|
||||
# when:
|
||||
# branch:
|
||||
# - develop
|
||||
# pull: true
|
||||
# settings:
|
||||
# backend: "filesystem"
|
||||
# restore: true
|
||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
||||
# archive_format: "gzip"
|
||||
# mount:
|
||||
# - '/app'
|
||||
# volumes:
|
||||
# - name: cache
|
||||
# path: /tmp/cache
|
||||
- name: build-master
|
||||
image: plugins/docker
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
environment:
|
||||
REACT_APP_API_HOST: https://pig.vault48.org/
|
||||
REACT_APP_REMOTE_CURRENT: https://pig.vault48.org/static/
|
||||
NEXT_PUBLIC_API_HOST: https://pig.vault48.org/
|
||||
NEXT_PUBLIC_REMOTE_CURRENT: https://pig.vault48.org/static/
|
||||
settings:
|
||||
dockerfile: docker/www/Dockerfile
|
||||
dockerfile: docker/nextjs/Dockerfile
|
||||
build_args_from_env:
|
||||
- REACT_APP_API_HOST
|
||||
- REACT_APP_REMOTE_CURRENT
|
||||
- NEXT_PUBLIC_API_HOST
|
||||
- NEXT_PUBLIC_REMOTE_CURRENT
|
||||
tag:
|
||||
- ${DRONE_BRANCH}
|
||||
custom_labels:
|
||||
|
@ -73,22 +73,22 @@ steps:
|
|||
from_secret: global_docker_registry
|
||||
repo:
|
||||
from_secret: docker_repo
|
||||
- name: rebuild-cache-with-filesystem
|
||||
image: meltwater/drone-cache:dev
|
||||
when:
|
||||
branch:
|
||||
- develop
|
||||
pull: true
|
||||
settings:
|
||||
backend: "filesystem"
|
||||
rebuild: true
|
||||
cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
||||
archive_format: "gzip"
|
||||
mount:
|
||||
- '/app'
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /tmp/cache
|
||||
volumes:
|
||||
- name: cache
|
||||
temp: {}
|
||||
# - name: rebuild-cache-with-filesystem
|
||||
# image: meltwater/drone-cache:dev
|
||||
# when:
|
||||
# branch:
|
||||
# - develop
|
||||
# pull: true
|
||||
# settings:
|
||||
# backend: "filesystem"
|
||||
# rebuild: true
|
||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
||||
# archive_format: "gzip"
|
||||
# mount:
|
||||
# - '/app'
|
||||
# volumes:
|
||||
# - name: cache
|
||||
# path: /tmp/cache
|
||||
#volumes:
|
||||
# - name: cache
|
||||
# temp: {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue