THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

chore(codefresh): add codefresh.yml (#887)

tags/1.13.1^2
Anthony Lapenna GitHub 2 years ago
parent
commit
de2818de4c
2 changed files with 37 additions and 0 deletions
  1. +1
    -0
      .dockerignore
  2. +36
    -0
      codefresh.yml

+ 1
- 0
.dockerignore View File

@@ -1,2 +1,3 @@
*
!dist
!build

+ 36
- 0
codefresh.yml View File

@@ -0,0 +1,36 @@
version: '1.0'
steps:

build_backend:
image: portainer/golang-builder:ci
working_directory: ${{main_clone}}
commands:
- mkdir -p /go/src/github.com/${{CF_REPO_OWNER}}
- ln -s /codefresh/volume/${{CF_REPO_NAME}}/api /go/src/github.com/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
- /build.sh api/cmd/portainer

build_frontend:
image: portainer/angular-builder:latest
working_directory: ${{build_backend}}
commands:
- npm install -g bower grunt grunt-cli && npm install
- bower install --allow-root
- grunt build-webapp
- mv api/cmd/portainer/portainer dist/

build_image:
type: build
working_directory: ${{build_frontend}}
dockerfile: ./build/linux/Dockerfile
image_name: portainer/portainer
tag: ${{CF_BRANCH}}

push_image:
type: push
candidate: '${{build_image}}'
tag: '${{CF_BRANCH}}'
registry: dockerhub
when:
branch:
only:
- develop

Loading…
Cancel
Save