mirror of
https://github.com/FlipsideCrypto/convox.git
synced 2026-02-06 10:56:56 +00:00
* upload cli binaries during release * add install instructions * update rack install instructions with new cli * fix urls on links to install docs * restructure cli installation docs * rework installation text
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
name: release
|
|
on:
|
|
push:
|
|
branches-ignore: ["*"]
|
|
tags: ["*"]
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v1
|
|
- name: version
|
|
run: |
|
|
VERSION=$(echo ${{ github.ref }} | awk -F/ '{print $3}')
|
|
echo "::set-env name=VERSION::${VERSION}"
|
|
- name: release
|
|
id: release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: ${{ env.VERSION }}
|
|
release_name: "${{ env.VERSION }}"
|
|
- name: tools
|
|
run: make tools
|
|
- name: cli
|
|
run: make -C cmd/convox build
|
|
- name: build
|
|
run: docker build -t convox/convox:${VERSION} .
|
|
- name: login
|
|
run: docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}"
|
|
env:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: push
|
|
run: docker push convox/convox:${VERSION}
|
|
- name: release-cli-linux
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ steps.release.outputs.upload_url }}
|
|
asset_path: ./cmd/convox/pkg/convox-linux-amd64
|
|
asset_name: convox-linux
|
|
asset_content_type: application/octet-stream
|
|
- name: release-cli-macos
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ steps.release.outputs.upload_url }}
|
|
asset_path: ./cmd/convox/pkg/convox-darwin-10.6-amd64
|
|
asset_name: convox-macos
|
|
asset_content_type: application/octet-stream
|