088cd76bc2
Because building and publishing of docker images are not working now. Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
name: Builds
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
types: [opened, synchronize]
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build_cli:
|
|
name: Build CLI
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
|
|
- name: Restore Go modules from cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: /home/runner/go/pkg/mod
|
|
key: deps-${{ hashFiles('go.sum') }}
|
|
|
|
- name: Update Go modules
|
|
run: make dep
|
|
|
|
- name: Build CLI
|
|
run: make
|
|
|
|
- name: Save binary
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: neofs-http-gw
|
|
path: bin/neofs-http-gw
|
|
|
|
# This job was made being skipped because building of a docker image is not working at this moment
|
|
build_image:
|
|
needs: build_cli
|
|
name: Build Docker image
|
|
runs-on: ubuntu-20.04
|
|
|
|
if: ${{ false }} # remove this line when building of docker image will work
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
|
|
- name: Restore Go modules from cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: /home/runner/go/pkg/mod
|
|
key: deps-${{ hashFiles('go.sum') }}
|
|
|
|
- name: Update Go modules
|
|
run: make dep
|
|
|
|
- name: Build Docker image
|
|
run: make image
|