Skip to content

Pragmatic-Apps/ionic-pwa-image-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Build Ionic PWA with Docker

This is a simple image we use in our CI process to create ionic PWAs and directly build deployment ready docker images.

How to use it?

We use this image in our Gitlab CI config like this:

image: pragmaticapps/ionic-pwa-image-builder:latest

stages:
  - deploy

services:
  - docker:dind

cache:
  untracked: true
  key: "$CI_PROJECT_ID"
  paths:
    - node_modules/

before_script:
    - npm i

buildpwa:
  stage: deploy
  only:
    - master
  script:
    - ionic build --prod --service-worker
    - docker build -t $CI_DOCKER_IMAGENAME .
    - docker login  -u $CI_DOCKER_REPO_USERNAME -p $CI_DOCKER_REPO_TOKEN $CI_DOCKER_REPO
    - docker push $CI_DOCKER_REPO/$CI_DOCKER_IMAGENAME

About

Simple image containing ionic and docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published