fix: create dummy frontend files in test to make the pipeline run
Some checks reported errors
continuous-integration/drone/pr Build was killed

This commit is contained in:
kolaente 2024-02-09 15:13:12 +01:00
parent e12e9f1bf2
commit adf7b73b6b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -117,6 +117,8 @@ steps:
GOPROXY: 'https://goproxy.kolaente.de' GOPROXY: 'https://goproxy.kolaente.de'
commands: commands:
- mage -compile ./mage-static - mage -compile ./mage-static
- mkdir -p frontend/dist
- touch frontend/dist/index.html
when: when:
event: [ push, tag, pull_request ] event: [ push, tag, pull_request ]
@ -1064,24 +1066,24 @@ steps:
image: docker:git image: docker:git
commands: commands:
- git fetch --tags - git fetch --tags
#
- name: restore-cache # - name: restore-cache
image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
pull: true # pull: true
environment: # environment:
AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY: # AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key # from_secret: cache_aws_secret_access_key
settings: # settings:
restore: true # restore: true
bucket: kolaente.dev-drone-dependency-cache # bucket: kolaente.dev-drone-dependency-cache
endpoint: https://s3.fr-par.scw.cloud # endpoint: https://s3.fr-par.scw.cloud
region: fr-par # region: fr-par
path_style: true # path_style: true
cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}' # cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}'
mount: # mount:
- '.cache' # - '.cache'
- name: build - name: build
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
@ -1090,7 +1092,7 @@ steps:
YARN_CACHE_FOLDER: .cache/yarn/ YARN_CACHE_FOLDER: .cache/yarn/
depends_on: depends_on:
- fetch-tags - fetch-tags
- restore-cache # - restore-cache
commands: commands:
- cd desktop - cd desktop
- export VERSION=${DRONE_TAG##v} - export VERSION=${DRONE_TAG##v}
@ -1103,25 +1105,25 @@ steps:
- yarn install - yarn install
- yarn dist --linux --windows - yarn dist --linux --windows
- name: rebuild-cache # - name: rebuild-cache
image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
pull: true # pull: true
environment: # environment:
AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY: # AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key # from_secret: cache_aws_secret_access_key
settings: # settings:
rebuild: true # rebuild: true
bucket: kolaente.dev-drone-dependency-cache # bucket: kolaente.dev-drone-dependency-cache
endpoint: https://s3.fr-par.scw.cloud # endpoint: https://s3.fr-par.scw.cloud
region: fr-par # region: fr-par
path_style: true # path_style: true
cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}' # cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}'
mount: # mount:
- '.cache' # - '.cache'
depends_on: # depends_on:
- build # - build
--- ---
kind: pipeline kind: pipeline
@ -1143,23 +1145,23 @@ steps:
commands: commands:
- git fetch --tags - git fetch --tags
- name: restore-cache # - name: restore-cache
image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
pull: true # pull: true
environment: # environment:
AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY: # AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key # from_secret: cache_aws_secret_access_key
settings: # settings:
restore: true # restore: true
bucket: kolaente.dev-drone-dependency-cache # bucket: kolaente.dev-drone-dependency-cache
endpoint: https://s3.fr-par.scw.cloud # endpoint: https://s3.fr-par.scw.cloud
region: fr-par # region: fr-par
path_style: true # path_style: true
cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}' # cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}'
mount: # mount:
- '.cache' # - '.cache'
- name: build - name: build
image: electronuserland/builder:wine-mono image: electronuserland/builder:wine-mono
@ -1168,7 +1170,7 @@ steps:
YARN_CACHE_FOLDER: .cache/yarn/ YARN_CACHE_FOLDER: .cache/yarn/
depends_on: depends_on:
- fetch-tags - fetch-tags
- restore-cache # - restore-cache
commands: commands:
- cd desktop - cd desktop
- export VERSION=${DRONE_TAG##v} - export VERSION=${DRONE_TAG##v}
@ -1182,25 +1184,25 @@ steps:
- cat package.json - cat package.json
- yarn dist --linux --windows - yarn dist --linux --windows
- name: rebuild-cache # - name: rebuild-cache
image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
pull: true # pull: true
environment: # environment:
AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY: # AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key # from_secret: cache_aws_secret_access_key
settings: # settings:
rebuild: true # rebuild: true
bucket: kolaente.dev-drone-dependency-cache # bucket: kolaente.dev-drone-dependency-cache
endpoint: https://s3.fr-par.scw.cloud # endpoint: https://s3.fr-par.scw.cloud
region: fr-par # region: fr-par
path_style: true # path_style: true
cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}' # cache_key: '{{ .Repo.Name }}_{{ checksum "desktop/yarn.lock" }}_{{ arch }}_{{ os }}'
mount: # mount:
- '.cache' # - '.cache'
depends_on: # depends_on:
- build # - build
- name: release-latest - name: release-latest
image: plugins/s3 image: plugins/s3
@ -1361,6 +1363,6 @@ steps:
- failure - failure
--- ---
kind: signature kind: signature
hmac: 418392c25980336dc1ae4a5c6db2c67d830c37bad50468847483e40e5aa59e83 hmac: 284c12993b18b99bf40e31a8ac5b861eb1dc505f680c83ff50f0657a7d6b9018
... ...