chore(deps): bump github.com/hashicorp/consul/api from 1.12.0 to 1.21.0 #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.17.8, 1.16.11] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Compile | |
run: make build | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3.1.0 | |
with: | |
version: v1.43.0 | |
skip-go-installation: true | |
skip-pkg-cache: true | |
skip-build-cache: true | |
- name: Test | |
run: make test-unit | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2.1.0 | |
with: | |
fail_ci_if_error: true | |
files: ./coverage.txt | |
verbose: true | |
- name: Image Build | |
run: make image | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
install-only: true | |
version: v1.0.0 | |
- name: Test GoReleaser | |
run: make test-release | |
deploy: | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.8 | |
- name: Prepare | |
id: prep | |
run: | | |
DOCKER_IMAGE=quay.io/kohlstechnology/git2consul | |
VERSION=${GITHUB_REF#refs/tags/} | |
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest" | |
echo ::set-output name=tags::${TAGS} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to quay.io | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.QUAY_USER }} | |
password: ${{ secrets.QUAY_TOKEN }} | |
registry: quay.io | |
- name: Build and push to quay.io | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.prep.outputs.tags }} | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
install-only: true | |
version: v1.0.0 | |
- name: Run GoReleaser | |
run: make release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |