mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Release artifacts to github on tag build
This commit is contained in:
34
.travis.yml
34
.travis.yml
@@ -1,5 +1,5 @@
|
||||
language: go
|
||||
go: 1.8
|
||||
go: 1.9
|
||||
go_import_path: go.mozilla.org/sops/
|
||||
|
||||
addons:
|
||||
@@ -10,24 +10,26 @@ addons:
|
||||
- python3
|
||||
|
||||
before_install:
|
||||
- gem install fpm || sudo gem install fpm
|
||||
- curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
- source ~/.cargo/env
|
||||
|
||||
script:
|
||||
- make
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
- |
|
||||
if [ ! -z "$TRAVIS_TAG" ]; then
|
||||
pip install --user awscli
|
||||
export PATH=$PATH:$HOME/.local/bin
|
||||
make deb-pkg rpm-pkg
|
||||
mkdir dist
|
||||
mv *.deb *.rpm dist/
|
||||
aws s3 sync dist/ s3://go.mozilla.org/sops/dist/ --acl public-read
|
||||
make download-index
|
||||
mv index.html dist/
|
||||
aws s3 sync dist/ s3://go.mozilla.org/sops/dist/ --acl public-read
|
||||
fi
|
||||
|
||||
before_deploy:
|
||||
- mkdir dist
|
||||
- make deb-pkg rpm-pkg
|
||||
- mv *.deb *.rpm dist/
|
||||
- GOOS=darwin go build -o dist/sops-${TRAVIS_TAG}.darwin go.mozilla.org/sops/cmd/sops
|
||||
- GOOS=windows go build -o dist/sops-${TRAVIS_TAG}.exe go.mozilla.org/sops/cmd/sops
|
||||
- GOOS=linux go build -o dist/sops-${TRAVIS_TAG}.linux go.mozilla.org/sops/cmd/sops
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key: "${GITHUB_OAUTH_TOKEN}"
|
||||
file_glob: true
|
||||
file: dist/*
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
|
||||
@@ -15,15 +15,15 @@ formats and encrypts with AWS KMS and PGP.
|
||||
.. image:: https://travis-ci.org/mozilla/sops.svg?branch=master
|
||||
:target: https://travis-ci.org/mozilla/sops
|
||||
|
||||
Install the **sops** command line with:
|
||||
Download binaries and packages of the latest release from `https://github.com/mozilla/sops/releases <https://github.com/mozilla/sops/releases>`_.
|
||||
|
||||
Or, install the **sops** command line with:
|
||||
|
||||
.. code:: bash
|
||||
|
||||
$ go get -u go.mozilla.org/sops/cmd/sops
|
||||
|
||||
(requires Go >= 1.6)
|
||||
|
||||
Or download RPM & DEB packages from `go.mozilla.org/sops/dist/ <https://go.mozilla.org/sops/dist/>`_.
|
||||
(requires Go >= 1.8)
|
||||
|
||||
If you don't have Go installed, set it up with:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user