This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cleanup on branch removal | |
| on: [ delete ] | |
| jobs: | |
| build: | |
| runs-on: [ self-hosted, staging ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Cleanup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM bitnami/git:latest | |
| FROM node:12.18.2-alpine3.9 as build-stage | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --pure-lockfile --non-interactive && yarn global add @vue/cli | |
| ARG VUE_APP_BASE_URL | |
| COPY . . | |
| RUN NODE_OPTIONS=--max_old_space_size=4096 yarn build --mode staging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tls: | |
| certificates: | |
| - certFile: /etc/letsencrypt/live/stg.example.com/fullchain.pem | |
| keyFile: /etc/letsencrypt/live/stg.example.com/privkey.pem | |
| - certFile: /etc/letsencrypt/live/traefik.example.com/fullchain.pem | |
| keyFile: /etc/letsencrypt/live/traefik.example.com/privkey.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and deploy to staging # Will be displayed in Github's Actions tab. | |
| on: [ push ] # On which events to trigger this workflow. | |
| jobs: # Defines what to run. | |
| build: | |
| runs-on: [ self-hosted, staging ] | |
| steps: | |
| - name: Get branch name (merge) | |
| if: github.event_name != 'pull_request' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.8' | |
| services: | |
| front: | |
| container_name: front_${COMPOSE_PROJECT_NAME} | |
| image: front:${COMPOSE_PROJECT_NAME} | |
| build: | |
| context: ./ | |
| args: | |
| - VUE_APP_BASE_URL=/${COMPOSE_PROJECT_NAME}/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.8' | |
| services: | |
| reverse-proxy: | |
| image: traefik:v2.4 | |
| restart: always | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| labels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaultEntryPoints: # makes the 443 port default. | |
| - websecure | |
| entryPoints: | |
| web: # defines an entrypoint called web | |
| address: :80 # use port 80 | |
| http: | |
| redirections: # redirect to entrypoint websecure | |
| entryPoint: | |
| to: websecure |
NewerOlder