1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #
- # gitlab-app.yml - Template CI/CD for gulp
- #
- # Inputs:
- # APP "app"
- # AWS_PROFILE ACCOUNT
- # PROFILE dev, release, prod, ...
- # Outputs
- # build/app/ rendered pages
- #
- stages:
- - build
- - publish
- - deploy
- variables:
- APP: "app"
- before_script:
- - set -e
- - ./configure --profile ${PROFILE}
- - eval $(paks/assist/secrets --env '' --profile "${PROFILE}" --aws-profile "${AWS_PROFILE}" get || echo exit 2)
- build-app:
- stage: build
- script:
- - ./paks/assist/build-parts --profile "${PROFILE}"
- - mkdir -p ${APP}/build
- artifacts:
- expire_in: 1 hour
- name: "rendered"
- paths:
- - ${APP}/build/
- tags: ['macosx']
- publish-app:
- stage: publish
- script:
- - ./paks/assist/publish-parts --profile "${PROFILE}"
- only: [ 'tags', 'triggers', 'schedules', 'web', 'api' ]
- except:
- variables:
- - $DEPLOY =~ /no-deploy/
- tags: ['macosx']
- deploy-app:
- stage: deploy
- script:
- - ./paks/assist/deploy-parts --profile "${PROFILE}"
- only: [ 'tags', 'triggers', 'schedules', 'web', 'api' ]
- except:
- variables:
- - $DEPLOY =~ /no-deploy/
- tags: ['macosx']
- when: manual
|