Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
paths:
- '**'
- '!**.md'
- '!doc/**'
- '!**.png'

jobs:
make-pacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make pacts
run: make pacts
make-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make test
run: make test
env:
REPLICATED_API_ORIGIN: https://api.staging.replicated.com/vendor
REPLICATED_ID_ORIGIN: https://id.staging.replicated.com
VENDOR_USER_EMAIL: dex+qa@replicated.com
VENDOR_USER_PASSWORD: ${{ secrets.VENDOR_USER_PASSWORD }}
REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_API_TOKEN }}
make-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make build
run: make build
snyk-vuln:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release CLI

on:
create:
tags:
- 'v*'

jobs:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested this but will try a release in a bit and see if it works, may have a followup PR

create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
run: docker login -u="$DOCKERHUB_DOCKER_USER" -p="$DOCKERHUB_DOCKER_PASS"
env:
DOCKERHUB_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: run goreleaser
run: curl -sL https://git.io/goreleaser | VERSION=v0.123.3 bash
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ release:
github:
owner: replicatedhq
name: replicated
brew:
github:
owner: replicatedhq
name: homebrew-replicated
folder: HomebrewFormula
install: bin.install "replicated"
homepage: https://www.replicated.com/docs/reference/vendor-cli/
description: "Manage your app's channels and releases from the command line"
brews:
- github:
owner: replicatedhq
name: homebrew-replicated
folder: HomebrewFormula
install: bin.install "replicated"
homepage: https://www.replicated.com/docs/reference/vendor-cli/
description: "Manage your app's channels and releases from the command line"
builds:
- goos:
- linux
Expand Down
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

Loading