Merge pull request #2608 from nspcc-dev/workflow-related-corrections
Workflow-related corrections
This commit is contained in:
commit
30de3d60cd
4 changed files with 7 additions and 5 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -93,6 +93,7 @@ jobs:
|
|||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }}
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
|
@ -110,10 +111,11 @@ jobs:
|
|||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
build-args: |
|
||||
REPO=${{ steps.setvars.outputs.repo }}
|
||||
REPO=github.com/${{ github.repository }}
|
||||
VERSION=${{ steps.setvars.outputs.version }}
|
||||
tags: ${{ steps.setvars.outputs.repo }}:${{ steps.setvars.outputs.version }}${{ steps.setvars.outputs.suffix }}${{ steps.setlatest.outputs.latest }}
|
||||
|
||||
|
@ -136,6 +138,7 @@ jobs:
|
|||
cache: true
|
||||
|
||||
- name: Login to DockerHub
|
||||
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }}
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
|
|
|
@ -16,12 +16,12 @@ WORKDIR /neo-go
|
|||
ARG REPO=repository
|
||||
ARG VERSION=dev
|
||||
|
||||
RUN make build
|
||||
RUN VERSION=$VERSION REPO=$REPO make build
|
||||
|
||||
# Executable image
|
||||
FROM alpine
|
||||
|
||||
ARG VERSION
|
||||
ARG VERSION=dev
|
||||
LABEL version=$VERSION
|
||||
|
||||
WORKDIR /
|
||||
|
|
2
Makefile
2
Makefile
|
@ -98,7 +98,7 @@ version:
|
|||
gh-docker-vars:
|
||||
@echo "::set-output name=file::$(D_FILE)"
|
||||
@echo "::set-output name=version::$(VERSION)"
|
||||
@echo "::set-output name=repo::$(REPO)"
|
||||
@echo "::set-output name=repo::$(IMAGE_REPO)"
|
||||
@echo "::set-output name=suffix::$(IMAGE_SUFFIX)"
|
||||
|
||||
test:
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
[![codecov](https://codecov.io/gh/nspcc-dev/neo-go/branch/master/graph/badge.svg)](https://codecov.io/gh/nspcc-dev/neo-go)
|
||||
[![CircleCI](https://circleci.com/gh/nspcc-dev/neo-go/tree/master.svg?style=shield)](https://circleci.com/gh/nspcc-dev/neo-go/tree/master)
|
||||
[![GithubWorkflows Tests](https://github.com/nspcc-dev/neo-go/actions/workflows/run_tests.yml/badge.svg)](https://github.com/nspcc-dev/neo-go/actions/workflows/run_tests.yml)
|
||||
[![GithubWorkflows CodeQL](https://github.com/nspcc-dev/neo-go/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/nspcc-dev/neo-go/actions/workflows/codeql-analysis.yml)
|
||||
[![Report](https://goreportcard.com/badge/github.com/nspcc-dev/neo-go)](https://goreportcard.com/report/github.com/nspcc-dev/neo-go)
|
||||
[![GoDoc](https://godoc.org/github.com/nspcc-dev/neo-go?status.svg)](https://godoc.org/github.com/nspcc-dev/neo-go)
|
||||
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/nspcc-dev/neo-go?sort=semver)
|
||||
|
|
Loading…
Reference in a new issue