Skip to content
Snippets Groups Projects
Commit de78e6bc authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

ci: split #fe deployments

parent 78962676
No related branches found
No related tags found
No related merge requests found
Pipeline #23154 failed
......@@ -83,12 +83,11 @@ stages:
- npm install
- echo Success!
fe-deploy-job:
#==[ Frontend deployment ]======================================================
.fe-deploy-job:
image: node:16-alpine
stage: deploy
environment:
name: production
url: https://staging.example.com
cache:
- key:
files:
......@@ -101,4 +100,26 @@ fe-deploy-job:
- cd frontend
- npm install
- npm run build
- butler push dist eurac/oetzi:html5
- butler push dist eurac/$GAME_NAME:html5
fe-prd-deploy-job:
extends: .fe-deploy-job
environment:
name: production/frontend
deployment_tier: production
url: https://eurac.itch.io/oetzi
variables:
GAME_NAME: oetzi
only: # TODO: only on tag
- main
fe-stg-deploy-job:
extends: .fe-deploy-job
environment:
name: staging/frontend
deployment_tier: staging
url: https://eurac.itch.io/oetzi-staging
variables:
GAME_NAME: oetzi-staging
only:
- development
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment