feat(ci): use 'always' for pull

This commit is contained in:
Dominik Pschenitschni 2022-11-04 18:29:02 +01:00 committed by kolaente
parent 02448700b3
commit da1d5eaba1
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 23 additions and 25 deletions

View File

@ -22,7 +22,7 @@ steps:
# Disabled until we figure out why it is so slow # Disabled until we figure out why it is so slow
# - name: restore-cache # - name: restore-cache
# image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
# pull: true # pull: always
# environment: # environment:
# AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
# from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
@ -41,7 +41,7 @@ steps:
- name: dependencies - name: dependencies
image: node:18-alpine image: node:18-alpine
pull: true pull: always
environment: environment:
PNPM_CACHE_FOLDER: .cache/pnpm PNPM_CACHE_FOLDER: .cache/pnpm
CYPRESS_CACHE_FOLDER: .cache/cypress CYPRESS_CACHE_FOLDER: .cache/cypress
@ -53,7 +53,7 @@ steps:
- name: lint - name: lint
image: node:18-alpine image: node:18-alpine
pull: true pull: always
environment: environment:
PNPM_CACHE_FOLDER: .cache/pnpm PNPM_CACHE_FOLDER: .cache/pnpm
commands: commands:
@ -64,7 +64,7 @@ steps:
- name: build-prod - name: build-prod
image: node:18-alpine image: node:18-alpine
pull: true pull: always
environment: environment:
PNPM_CACHE_FOLDER: .cache/pnpm PNPM_CACHE_FOLDER: .cache/pnpm
commands: commands:
@ -75,7 +75,7 @@ steps:
- name: test-unit - name: test-unit
image: node:18-alpine image: node:18-alpine
pull: true pull: always
commands: commands:
- corepack enable && pnpm config set store-dir .cache/pnpm - corepack enable && pnpm config set store-dir .cache/pnpm
- pnpm run test:unit - pnpm run test:unit
@ -85,7 +85,7 @@ steps:
- name: typecheck - name: typecheck
failure: ignore failure: ignore
image: node:18-alpine image: node:18-alpine
pull: true pull: always
environment: environment:
PNPM_CACHE_FOLDER: .cache/pnpm PNPM_CACHE_FOLDER: .cache/pnpm
commands: commands:
@ -96,7 +96,7 @@ steps:
- name: test-frontend - name: test-frontend
image: cypress/browsers:node16.14.0-chrome99-ff97 image: cypress/browsers:node16.14.0-chrome99-ff97
pull: true pull: always
environment: environment:
CYPRESS_API_URL: http://api:3456/api/v1 CYPRESS_API_URL: http://api:3456/api/v1
CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB
@ -116,7 +116,7 @@ steps:
# - name: rebuild-cache # - name: rebuild-cache
# image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
# pull: true # pull: always
# environment: # environment:
# AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
# from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
@ -136,7 +136,7 @@ steps:
- name: deploy-preview - name: deploy-preview
image: node:18-alpine image: node:18-alpine
pull: true pull: always
environment: environment:
NETLIFY_AUTH_TOKEN: NETLIFY_AUTH_TOKEN:
from_secret: netlify_auth_token from_secret: netlify_auth_token
@ -179,7 +179,7 @@ steps:
# - name: restore-cache # - name: restore-cache
# image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
# pull: true # pull: always
# environment: # environment:
# AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
# from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
@ -197,8 +197,7 @@ steps:
- name: build - name: build
image: node:18-alpine image: node:18-alpine
pull: true pull: always
group: build-static
environment: environment:
PNPM_CACHE_FOLDER: .cache/pnpm PNPM_CACHE_FOLDER: .cache/pnpm
commands: commands:
@ -214,7 +213,7 @@ steps:
- name: static - name: static
image: kolaente/zip image: kolaente/zip
pull: true pull: always
commands: commands:
- cd dist - cd dist
- zip -r ../vikunja-frontend-unstable.zip * - zip -r ../vikunja-frontend-unstable.zip *
@ -223,7 +222,7 @@ steps:
- name: release - name: release
image: plugins/s3 image: plugins/s3
pull: true pull: always
settings: settings:
bucket: vikunja-releases bucket: vikunja-releases
access_key: access_key:
@ -256,7 +255,7 @@ steps:
# - name: restore-cache # - name: restore-cache
# image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
# pull: true # pull: always
# environment: # environment:
# AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
# from_secret: cache_aws_access_key_id # from_secret: cache_aws_access_key_id
@ -274,8 +273,7 @@ steps:
- name: build - name: build
image: node:18-alpine image: node:18-alpine
pull: true pull: always
group: build-static
environment: environment:
PNPM_CACHE_FOLDER: .cache/pnpm PNPM_CACHE_FOLDER: .cache/pnpm
commands: commands:
@ -291,7 +289,7 @@ steps:
- name: static - name: static
image: kolaente/zip image: kolaente/zip
pull: true pull: always
commands: commands:
- cd dist - cd dist
- zip -r ../vikunja-frontend-${DRONE_TAG##v}.zip * - zip -r ../vikunja-frontend-${DRONE_TAG##v}.zip *
@ -300,7 +298,7 @@ steps:
- name: release - name: release
image: plugins/s3 image: plugins/s3
pull: true pull: always
settings: settings:
bucket: vikunja-releases bucket: vikunja-releases
access_key: access_key:
@ -361,7 +359,7 @@ trigger:
steps: steps:
- name: docker-unstable - name: docker-unstable
image: plugins/docker:linux-arm image: plugins/docker:linux-arm
pull: true pull: always
settings: settings:
username: username:
from_secret: docker_username from_secret: docker_username
@ -380,7 +378,7 @@ steps:
- name: docker-version - name: docker-version
image: plugins/docker:linux-arm image: plugins/docker:linux-arm
pull: true pull: always
settings: settings:
username: username:
from_secret: docker_username from_secret: docker_username
@ -400,7 +398,7 @@ steps:
- name: docker-unstable-arm64 - name: docker-unstable-arm64
image: plugins/docker:linux-arm64 image: plugins/docker:linux-arm64
pull: true pull: always
settings: settings:
username: username:
from_secret: docker_username from_secret: docker_username
@ -419,7 +417,7 @@ steps:
- name: docker-version-arm64 - name: docker-version-arm64
image: plugins/docker:linux-arm64 image: plugins/docker:linux-arm64
pull: true pull: always
settings: settings:
username: username:
from_secret: docker_username from_secret: docker_username
@ -461,7 +459,7 @@ trigger:
steps: steps:
- name: docker-unstable - name: docker-unstable
image: plugins/docker:linux-amd64 image: plugins/docker:linux-amd64
pull: true pull: always
settings: settings:
username: username:
from_secret: docker_username from_secret: docker_username
@ -478,7 +476,7 @@ steps:
- name: docker-version - name: docker-version
image: plugins/docker:linux-amd64 image: plugins/docker:linux-amd64
pull: true pull: always
settings: settings:
username: username:
from_secret: docker_username from_secret: docker_username