<commit_before>box: golang
build:
  steps:
    - wercker/setup-go-workspace:
        package-dir: github.com/alexkappa/crond

    - script:
        name: test
        code: |
          go test

    - script:
        name: build
        code: |
          make OS=linux ARCH=amd64

    - script:
        name: copy binaries
        code: |
          cp bin/crond-linux-amd64 $WERCKER_OUTPUT_DIR/crond
release:
  box: yieldr/debian
  steps:
    - script:
        name: copy binaries
        code: |
          cp $WERCKER_SOURCE_DIR/* /usr/bin

    - script:
        name: get version
        code: |
          export VERSION=$(/usr/bin/crond -v)

    - internal/docker-push:
        username: $DOCKER_USERNAME
        password: <PASSWORD>
        repository: alexkappa/crond
        tag: $VERSION
        cmd: crond /etc/cron.d

    - wercker/github-create-release@1.0.1:
        token: $GITHUB_TOKEN
        tag: $VERSION
        body: |
          You can find the latest release at [hub.docker.com](https://hub.docker.com/r/alexkappa/crond/tags/).

          ```
          docker pull alexkappa/crond:$VERSION
          ```<commit_msg>trying different variations<commit_after>box: golang
build:
  steps:
    - wercker/setup-go-workspace:
        package-dir: github.com/alexkappa/crond

    - script:
        name: test
        code: |
          go test

    - script:
        name: build
        code: |
          make OS=linux ARCH=amd64

    - script:
        name: copy binaries
        code: |
          cp bin/crond-linux-amd64 $WERCKER_OUTPUT_DIR/crond
release:
  box: yieldr/debian
  steps:
    - script:
        name: copy binaries
        code: |
          cp $WERCKER_SOURCE_DIR/* /usr/bin

    - script:
        name: get version
        code: |
          export VERSION=$(/usr/bin/crond -v)

    - internal/docker-push:
        username: $DOCKER_USERNAME
        password: <PASSWORD>
        repository: alexkappa/crond
        cmd: crond /etc/cron.d
        tag: latest

    - wercker/github-create-release@1.0.1:
        token: $GITHUB_TOKEN
        tag: $VERSION
        body: |
          You can find the latest release at [hub.docker.com](https://hub.docker.com/r/alexkappa/crond/tags/).

          ```
          docker pull alexkappa/crond:$VERSION
          ```
{'fraction_non_alphanumeric': 0.10657894736842105, 'fraction_numerical': 0.0061403508771929825, 'mean_word_length': 1.6431054461181924, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3335113', 'n_tokens_mistral': 761, 'n_tokens_neox': 728, 'n_words': 156}