1
0
Fork 0
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:
Fedor Katurov 2022-01-19 17:33:49 +07:00
parent bcaa9fde39
commit 6a4ed3fd2a

View file

@ -7,47 +7,47 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: restore-cache-with-filesystem # - name: restore-cache-with-filesystem
image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
when: # when:
branch: # branch:
- develop # - develop
pull: true # pull: true
settings: # settings:
backend: "filesystem" # backend: "filesystem"
restore: true # restore: true
cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}' # cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
archive_format: "gzip" # archive_format: "gzip"
mount: # mount:
- '/app' # - '/app'
volumes: # volumes:
- name: cache # - name: cache
path: /tmp/cache # path: /tmp/cache
- name: build-master - name: build-master
image: plugins/docker image: plugins/docker
when: when:
branch: branch:
- master - master
environment: environment:
REACT_APP_API_HOST: https://pig.vault48.org/ NEXT_PUBLIC_API_HOST: https://pig.vault48.org/
REACT_APP_REMOTE_CURRENT: https://pig.vault48.org/static/ NEXT_PUBLIC_REMOTE_CURRENT: https://pig.vault48.org/static/
settings: settings:
dockerfile: docker/www/Dockerfile dockerfile: docker/nextjs/Dockerfile
build_args_from_env: build_args_from_env:
- REACT_APP_API_HOST - NEXT_PUBLIC_API_HOST
- REACT_APP_REMOTE_CURRENT - NEXT_PUBLIC_REMOTE_CURRENT
tag: tag:
- ${DRONE_BRANCH} - ${DRONE_BRANCH}
custom_labels: custom_labels:
- "commit=${DRONE_COMMIT_SHA}" - "commit=${DRONE_COMMIT_SHA}"
username: username:
from_secret: global_docker_login from_secret: global_docker_login
password: password:
from_secret: global_docker_password from_secret: global_docker_password
registry: registry:
from_secret: global_docker_registry from_secret: global_docker_registry
repo: repo:
from_secret: docker_repo from_secret: docker_repo
- name: build-develop - name: build-develop
image: plugins/docker image: plugins/docker
when: when:
@ -73,22 +73,22 @@ steps:
from_secret: global_docker_registry from_secret: global_docker_registry
repo: repo:
from_secret: docker_repo from_secret: docker_repo
- name: rebuild-cache-with-filesystem # - name: rebuild-cache-with-filesystem
image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
when: # when:
branch: # branch:
- develop # - develop
pull: true # pull: true
settings: # settings:
backend: "filesystem" # backend: "filesystem"
rebuild: true # rebuild: true
cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}' # cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
archive_format: "gzip" # archive_format: "gzip"
mount: # mount:
- '/app' # - '/app'
volumes: # volumes:
- name: cache # - name: cache
path: /tmp/cache # path: /tmp/cache
volumes: #volumes:
- name: cache # - name: cache
temp: {} # temp: {}