<commit_before>box: pallet/golang
build:
    steps:
        - setup-go-workspace

        - install-packages:
            packages: git wget

        - script:
            name: install actool
            code: |
                wget -O appc.tar.gz https://github.com/appc/spec/releases/download/v0.7.1/appc-v0.7.1.tar.gz
                tar -xzf appc.tar.gz --strip 1 --wildcards --no-anchored 'actool'
                rm -rf appc.tar.gz

        - script:
            name: install confd
            code: |
                wget -O confd https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64
                chmod +x confd

        - script:
            name: install deb2aci
            code: |
                git clone https://github.com/klizhentas/deb2aci.git src/github.com/klizhentas/deb2aci
                cd src/github.com/klizhentas/deb2aci
                go get -v ./...
                go build -v

        - script:
            name: build aci
            code: |
                mv $GOPATH/bin/deb2aci ./
                ./deb2aci -pkg nginx -image kubernetes-proxy.aci -manifest kubernetes-proxy.manifest.json

    after-steps:
        - slack-notifier:
            url: $SLACK_URL
            username: wercker

deploy:
    steps:
        - github-create-release:
            token: $GITHUB_TOKEN
            tag: v0.0.1

        - github-upload-asset:
            token: $GITHUB_TOKEN
            file: kubernetes-proxy.aci

    after-steps:
        - slack-notifier:
            url: $SLACK_URL
            username: wercker<commit_msg>moved actool and deb2aci into $PATH<commit_after>box: pallet/golang
build:
    steps:
        - setup-go-workspace

        - install-packages:
            packages: git wget

        - script:
            name: install actool
            code: |
                wget -O appc.tar.gz https://github.com/appc/spec/releases/download/v0.7.1/appc-v0.7.1.tar.gz
                tar -xzf appc.tar.gz --strip 1 --wildcards --no-anchored 'actool'
                rm -rf appc.tar.gz
                mv actool /usr/local/bin/actool

        - script:
            name: install confd
            code: |
                wget -O confd https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64
                chmod +x confd

        - script:
            name: install deb2aci
            code: |
                git clone https://github.com/klizhentas/deb2aci.git src/github.com/klizhentas/deb2aci
                cd src/github.com/klizhentas/deb2aci
                go get -v ./...
                go build -v
                mv $GOPATH/bin/deb2aci /usr/local/bin/deb2aci

        - script:
            name: build aci
            code: |
                deb2aci -pkg nginx -image kubernetes-proxy.aci -manifest kubernetes-proxy.manifest.json

    after-steps:
        - slack-notifier:
            url: $SLACK_URL
            username: wercker

deploy:
    steps:
        - github-create-release:
            token: $GITHUB_TOKEN
            tag: v0.0.1

        - github-upload-asset:
            token: $GITHUB_TOKEN
            file: kubernetes-proxy.aci

    after-steps:
        - slack-notifier:
            url: $SLACK_URL
            username: wercker
{'fraction_non_alphanumeric': 0.09975594874923734, 'fraction_numerical': 0.01647345942647956, 'mean_word_length': 1.2755031228313671, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1396302', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1010, 'n_words': 200}