Skip to content

Merge pull request #128 from gman0/backport-126 #129

Merge pull request #128 from gman0/backport-126

Merge pull request #128 from gman0/backport-126 #129

#
# Copyright The CERN.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: csi-cvmfsplugin
on:
push:
branches:
- '*'
tags:
- 'v*'
paths-ignore:
- 'CONTRIBUTING.md'
- 'README.md'
- 'docs/**'
jobs:
build:
name: Build binaries
runs-on: ubuntu-latest
env:
GOVER: 1.13.3
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ env.GOVER }}
uses: actions/setup-go@v1
with:
go-version: ${{ env.GOVER }}
- name: Install golangci-lint
if: matrix.target_arch != 'arm'
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${{ env.GOROOT }}/bin" v1.21.0
- name: Check out code
uses: actions/checkout@v1
- name: Make test
run: |
make test
- name: Make build for cross platform binaries
run: |
make build-cross
- name: Make changelog
if: startsWith(github.ref, 'refs/tags/v')
run: |
sudo apt-get update
sudo apt-get install ruby
make changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release cross platform binaries
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
_dist/**
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker images
run: |
make docker