buildspec.yml 790 B

1234567891011121314151617181920212223242526272829303132
  1. version: 0.2
  2. env:
  3. variables:
  4. DOCKER_BUILDKIT: 1
  5. IMAGE_TAG: ''
  6. secrets-manager:
  7. DOCKER_REGISTRY_PASSWORD: growi/official-image-builder:DOCKER_REGISTRY_PASSWORD
  8. phases:
  9. pre_build:
  10. commands:
  11. # install Git LFS
  12. - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash
  13. - yum install -y git-lfs
  14. # fetch LFS files
  15. - git-lfs pull
  16. # login to docker.io
  17. - echo ${DOCKER_REGISTRY_PASSWORD} | docker login --username wsmoogle --password-stdin
  18. build:
  19. commands:
  20. - docker build -t ${IMAGE_TAG} -f ./apps/app/docker/Dockerfile .
  21. post_build:
  22. commands:
  23. - docker push $IMAGE_TAG
  24. cache:
  25. paths:
  26. - node_modules/**/*
  27. - apps/*/node_modules/**/*
  28. - packages/*/node_modules/**/*