# This is a basic workflow to help you get started with Actions name: buildndeploy # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the master branch push: branches: - pipeline # Allows you to run this workflow manually from the Actions tab workflow_dispatch: env: ADDITIONAL_KOPANO_PACKAGES: ADDITIONAL_KOPANO_WEBAPP_PLUGINS: KOPANO_UID: 999 KOPANO_GID: 999 # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: docker: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout uses: actions/checkout@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 #- name: Install linting tools # run: | # .ci/setup-tools.sh #- name: Lint # run: | # ./version.sh # make lint # tests/test.exp # ./version.sh # commander test tests/commander.yaml # - name: Cache Kopano Docker layers # uses: actions/cache@v2 # with: # path: /tmp/.buildx-cache # key: ${{ runner.os }}-buildx-${{ github.sha }} # restore-keys: | # ${{ runner.os }}-buildx- - name: Extract Version information id: kopano_versions run: | ./gh_output_dockertags.sh core ./gh_output_dockertags.sh webapp ./gh_output_dockertags.sh kapps ./gh_output_dockertags.sh kdav ./gh_output_dockertags.sh meet ./gh_output_dockertags.sh zpush - name: Prepare Kopano APT Packages Cache uses: actions/cache@v2 with: path: /tmp/.kopano-repo-helper-cache key: ${{ runner.os }}-kopano-${{ steps.kopano_versions.outputs.core_version }}-${{ steps.kopano_versions.outputs.webapp_version }}-${{ steps.kopano_versions.outputs.zpush_version }}-${{ steps.kopano_versions.outputs.meet_version }}-${{ steps.kopano_versions.outputs.kapps_version }}-${{ steps.kopano_versions.outputs.kdav_version }} - name: Download Kopano APT Packages uses: docker/build-push-action@v2 with: push: false tags: zokradonh/kopano_repo_helper context: repo cache-from: type=local,src=/tmp/.kopano-repo-helper-cache cache-to: type=local,dest=/tmp/.kopano-repo-helper-cache-new,mode=max - name: Cleanup Kopano APT Packages Cache (Workaround) run: | rm -rf /tmp/.kopano-repo-helper-cache mv /tmp/.kopano-repo-helper-cache-new /tmp/.kopano-repo-helper-cache - uses: ./.github/actions/build-component with: push: false component: base - uses: ./.github/actions/build-component with: push: false component: core tags: ${{ steps.kopano_versions.outputs.core_version_tags }} - uses: ./.github/actions/build-component with: push: false component: webapp tags: ${{ steps.kopano_versions.outputs.webapp_version_tags }} - uses: ./.github/actions/build-component with: push: false component: zpush tags: ${{ steps.kopano_versions.outputs.zpush_version_tags }} # - name: Test # run: | # echo "KCCONF_SERVER_SURVEYCLIENT_INTERVAL=0" >> kopano_server.env # echo "KOPANO_SURVEYCLIENT_ENABLED=false" >> kopano_konnect.env # echo "KOPANO_SURVEYCLIENT_ENABLED=false" >> kopano_kwmserver.env # make test-ci # docker-compose down -v # make test-startup-meet-demo