chore(gitlab-ci): provide ssh key to all haskell stages
This commit is contained in:
parent
3cc2e2a005
commit
88282647ec
@ -88,7 +88,7 @@ yesod:build:dev:
|
|||||||
- stack build --copy-bins --local-bin-path $(pwd)/bin --fast --flag uniworx:-library-only --flag uniworx:dev --flag uniworx:pedantic
|
- stack build --copy-bins --local-bin-path $(pwd)/bin --fast --flag uniworx:-library-only --flag uniworx:dev --flag uniworx:pedantic
|
||||||
needs:
|
needs:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
before_script:
|
before_script: &haskell
|
||||||
- apt-get update -y
|
- apt-get update -y
|
||||||
- apt-get install -y --no-install-recommends locales-all
|
- apt-get install -y --no-install-recommends locales-all
|
||||||
- apt-get install openssh-client -y
|
- apt-get install openssh-client -y
|
||||||
@ -115,13 +115,7 @@ yesod:build:
|
|||||||
- stack build --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic
|
- stack build --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic
|
||||||
needs:
|
needs:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
before_script:
|
before_script: *haskell
|
||||||
- apt-get update -y
|
|
||||||
- apt-get install -y --no-install-recommends locales-all
|
|
||||||
- apt-get install -y --no-install-recommends openssh-client
|
|
||||||
- install -v -m 0700 -d ~/.ssh
|
|
||||||
- install -v -T -m 0644 ${SSH_KNOWN_HOSTS} ~/.ssh/known_hosts
|
|
||||||
- install -v -T -m 0400 ${SSH_DEPLOY_KEY} ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- bin/
|
- bin/
|
||||||
@ -162,9 +156,7 @@ hlint:dev:
|
|||||||
needs:
|
needs:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
- yesod:build:dev # For caching
|
- yesod:build:dev # For caching
|
||||||
before_script:
|
before_script: *haskell
|
||||||
- apt-get update -y
|
|
||||||
- apt-get install -y --no-install-recommends locales-all
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
|
|
||||||
@ -185,9 +177,7 @@ yesod:test:dev:
|
|||||||
needs:
|
needs:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
- yesod:build:dev # For caching
|
- yesod:build:dev # For caching
|
||||||
before_script:
|
before_script: *haskell
|
||||||
- apt-get update -y
|
|
||||||
- apt-get install -y --no-install-recommends locales-all
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
|
|
||||||
@ -203,9 +193,7 @@ hlint:
|
|||||||
- stack test --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic uniworx:test:hlint
|
- stack test --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic uniworx:test:hlint
|
||||||
needs:
|
needs:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
before_script:
|
before_script: *haskell
|
||||||
- apt-get update -y
|
|
||||||
- apt-get install -y --no-install-recommends locales-all
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
|
|
||||||
@ -226,9 +214,7 @@ yesod:test:
|
|||||||
- stack test --coverage --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --skip hlint
|
- stack test --coverage --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --skip hlint
|
||||||
needs:
|
needs:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
before_script:
|
before_script: *haskell
|
||||||
- apt-get update -y
|
|
||||||
- apt-get install -y --no-install-recommends locales-all
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- frontend:build
|
- frontend:build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user