This commit is contained in:
parent
8061410333
commit
5d9b306d41
26
.drone.yml
26
.drone.yml
@ -23,11 +23,12 @@ steps:
|
|||||||
path: /cache
|
path: /cache
|
||||||
environment:
|
environment:
|
||||||
YARN_CACHE_FOLDER: /cache/.yarn-docker
|
YARN_CACHE_FOLDER: /cache/.yarn-docker
|
||||||
|
NODE_CONFIG_ENV: default
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn build
|
- yarn build
|
||||||
- name: build docker image
|
- name: build docker image
|
||||||
image: r.j3ss.co/img
|
image: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
@ -36,9 +37,11 @@ steps:
|
|||||||
TOKEN:
|
TOKEN:
|
||||||
from_secret: docker_hub
|
from_secret: docker_hub
|
||||||
commands:
|
commands:
|
||||||
- img login -u voidic -p $TOKEN
|
- dockerd &
|
||||||
- img build -t voidic/snort:latest --platform linux/amd64,linux/arm64 -f Dockerfile.prebuilt .
|
- docker login -u voidic -p $TOKEN
|
||||||
- img push voidic/snort:latest
|
- docker build -t voidic/snort:latest --platform linux/amd64,linux/arm64 -f Dockerfile.prebuilt .
|
||||||
|
- docker push voidic/snort:latest
|
||||||
|
- kill $(cat /var/run/docker.pid)
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
claim:
|
claim:
|
||||||
@ -59,6 +62,7 @@ steps:
|
|||||||
path: /cache
|
path: /cache
|
||||||
environment:
|
environment:
|
||||||
YARN_CACHE_FOLDER: /cache/.yarn-test
|
YARN_CACHE_FOLDER: /cache/.yarn-test
|
||||||
|
NODE_CONFIG_ENV: default
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn build
|
- yarn build
|
||||||
@ -90,6 +94,7 @@ steps:
|
|||||||
path: /cache
|
path: /cache
|
||||||
environment:
|
environment:
|
||||||
YARN_CACHE_FOLDER: /cache/.yarn-translations
|
YARN_CACHE_FOLDER: /cache/.yarn-translations
|
||||||
|
NODE_CONFIG_ENV: default
|
||||||
TOKEN:
|
TOKEN:
|
||||||
from_secret: gitea
|
from_secret: gitea
|
||||||
CTOKEN:
|
CTOKEN:
|
||||||
@ -134,12 +139,13 @@ steps:
|
|||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /cache
|
||||||
environment:
|
environment:
|
||||||
YARN_CACHE_FOLDER: /cache/.yarn-docker-release
|
YARN_CACHE_FOLDER: /cache/.yarn-docker-
|
||||||
|
NODE_CONFIG_ENV: default
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn build
|
- yarn build
|
||||||
- name: build docker image
|
- name: build docker image
|
||||||
image: r.j3ss.co/img
|
image: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
@ -148,9 +154,11 @@ steps:
|
|||||||
TOKEN:
|
TOKEN:
|
||||||
from_secret: docker_hub
|
from_secret: docker_hub
|
||||||
commands:
|
commands:
|
||||||
- img login -u voidic -p $TOKEN
|
- dockerd &
|
||||||
- img build -t voidic/snort:$DRONE_TAG --platform linux/amd64,linux/arm64 -f Dockerfile.prebuilt .
|
- docker login -u voidic -p $TOKEN
|
||||||
- img push voidic/snort:$DRONE_TAG
|
- docker buildx build -t voidic/snort:$DRONE_TAG --platform linux/amd64,linux/arm64 -f Dockerfile.prebuilt .
|
||||||
|
- docker push voidic/snort:$DRONE_TAG
|
||||||
|
- kill $(cat /var/run/docker.pid)
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
claim:
|
claim:
|
||||||
|
Loading…
Reference in New Issue
Block a user